-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmain.js
More file actions
34 lines (29 loc) · 955 Bytes
/
main.js
File metadata and controls
34 lines (29 loc) · 955 Bytes
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
import Exponent from 'exponent';
import React from 'react';
import { Platform, StatusBar, View, StyleSheet } from 'react-native';
import { NavigationProvider, StackNavigation } from '@exponent/ex-navigation';
import Router from './navigation/Router';
import Colors from './constants/Colors';
const AppContainer = () => {
const initialRoute = Router.getRoute('rssList');
return (
<View style={styles.container}>
<NavigationProvider router={Router}>
<StackNavigation initialRoute={initialRoute} />
</NavigationProvider>
{Platform.OS === 'ios' && <StatusBar barStyle="light-content" />}
{Platform.OS === 'android' && <View style={styles.statusBarUnderlay} />}
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: Colors.dark
},
statusBarUnderlay: {
height: 24,
backgroundColor: 'rgba(0,0,0,0.2)'
}
});
Exponent.registerRootComponent(AppContainer);