-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.js
40 lines (34 loc) · 893 Bytes
/
index.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
if (__DEV__) {
import('./ReactotronConfig');
}
import 'react-native-gesture-handler';
import React, {Component} from 'react';
import {AppRegistry, Platform, StatusBar, View} from 'react-native';
import EStyleSheet from 'react-native-extended-stylesheet';
import App from './src/containers/app';
import theme from './src/theme';
class ZooniverseMobile extends Component {
render() {
return (
<View style={styles.container}>
<PlatformSpecificStatusBar />
<App />
</View>
);
}
}
const PlatformSpecificStatusBar = () => {
if (Platform.OS === 'ios') {
return (
<StatusBar barStyle="light-content" hidden={false} translucent={false} />
);
}
return null;
};
const styles = EStyleSheet.create({
container: {
flex: 1,
},
});
EStyleSheet.build(theme);
AppRegistry.registerComponent('ZooniverseMobile', () => ZooniverseMobile);