-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
90 lines (82 loc) · 1.81 KB
/
App.js
File metadata and controls
90 lines (82 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import React from 'react';
import {StyleSheet, Text, View, TouchableOpacity} from 'react-native';
import {Provider} from 'react-redux';
import AppContainer from './AppNavigator';
//import AppIntroSlider from 'react-native-app-intro-slider';
import {human} from 'react-native-typography';
import SplashScreen from 'react-native-splash-screen';
import {store} from './redux/store';
/*const slides = [
{
key: 'one',
title: 'Step 1',
text: 'Set goals you want to achieve today',
backgroundColor: '#59b2ab',
},
{
key: 'two',
title: 'Step 2',
text: 'Log the successes and mistakes from your day',
backgroundColor: '#90DAFD',
},
{
key: 'three',
title: 'Step 3',
text: 'Track your success to your aims',
backgroundColor: '#F25757',
},
];*/
export default class App extends React.Component {
componentDidMount() {
SplashScreen.hide();
}
/*state = {
showRealApp: false,
};
_renderItem = ({item}) => {
return (
<View style={[styles.slide, {backgroundColor: item.backgroundColor}]}>
<Text style={styles.title}>{item.title}</Text>
<Text style={styles.text}>{item.text}</Text>
</View>
);
};
_onDone = () => {
// User finished the introduction. Show real app through
// navigation or simply by controlling state
this.setState({showRealApp: true});
};*/
render() {
//if (this.state.showRealApp) {
return (
<Provider store={store}>
<AppContainer />
</Provider>
);
/*} else {
return (
<AppIntroSlider
renderItem={this._renderItem}
data={slides}
onDone={this._onDone}
/>
);
}*/
}
}
const styles = StyleSheet.create({
slide: {
backgroundColor: 'red',
flex: 1,
alignItems: 'center',
justifyContent: 'center',
padding: 20,
},
title: {
...human.title2WhiteObject,
},
text: {
...human.title3WhiteObject,
textAlign: 'center',
},
});