-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
40 lines (35 loc) · 893 Bytes
/
App.js
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
import { KeepAwake, registerRootComponent } from 'expo';
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { Provider } from 'react-redux';
import store from './src/store';
import AuthScreen from './src/screens/AuthScreen';
class App extends React.Component {
componentWillMount() {
if (__DEV__) { // eslint-disable-line no-undef
KeepAwake.activate();
}
}
render() {
return (
<Provider store={store}>
<View style={styles.container}>
<Text>HEY</Text>
<AuthScreen />
<Text>WTF</Text>
</View>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#22235630',
alignItems: 'center',
justifyContent: 'space-around',
marginTop: 25
},
});
export default App;
//export default registerRootComponent(App);