forked from zooniverse/mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (39 loc) · 847 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
41
42
43
44
45
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);