Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- render() {
- return (
- <Root style={styles.container}>
- <StatusBar
- backgroundColor="white"
- barStyle="dark-content"
- />
- <MainView />
- </Root>
- );
- }
- const MainView = DrawerNavigator({
- DASHBOARD: {
- screen: Dashboard,
- },
- LOGOUT: {
- screen: LoginForm,
- }
- }, {
- initialRouteName: 'DASHBOARD',
- contentComponent: drawerHeader,
- drawerOpenRoute: 'DrawerOpen',
- drawerCloseRoute: 'DrawerClose',
- drawerToogleRoute: 'DrawerToogle'
- });
- <Container>
- <Header androidStatusBarColor="#FFF" style={{backgroundColor:'#000'}}>
- <StatusBar
- backgroundColor="white"
- barStyle="dark-content"
- />
- <Body>
- <Title style={{color:'#FFF'}}>My App</Title>
- </Body>
- </Header>
- <Content>
- //content of your app goes here
- </Content>
- </Container>
- render() {
- return (
- <Root style={styles.container}>
- <StatusBar
- backgroundColor="white"
- barStyle="dark-content"
- />
- {this.spinerRender()}
- </Root>
- );
- }
Add Comment
Please, Sign In to add comment