Guest User

Untitled

a guest
Apr 23rd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. render() {
  2. return (
  3. <Root style={styles.container}>
  4. <StatusBar
  5. backgroundColor="white"
  6. barStyle="dark-content"
  7. />
  8. <MainView />
  9. </Root>
  10. );
  11. }
  12. const MainView = DrawerNavigator({
  13. DASHBOARD: {
  14. screen: Dashboard,
  15. },
  16. LOGOUT: {
  17. screen: LoginForm,
  18. }
  19. }, {
  20. initialRouteName: 'DASHBOARD',
  21. contentComponent: drawerHeader,
  22. drawerOpenRoute: 'DrawerOpen',
  23. drawerCloseRoute: 'DrawerClose',
  24. drawerToogleRoute: 'DrawerToogle'
  25. });
  26.  
  27. <Container>
  28. <Header androidStatusBarColor="#FFF" style={{backgroundColor:'#000'}}>
  29. <StatusBar
  30. backgroundColor="white"
  31. barStyle="dark-content"
  32. />
  33. <Body>
  34. <Title style={{color:'#FFF'}}>My App</Title>
  35. </Body>
  36. </Header>
  37. <Content>
  38. //content of your app goes here
  39. </Content>
  40. </Container>
  41.  
  42. render() {
  43. return (
  44. <Root style={styles.container}>
  45. <StatusBar
  46. backgroundColor="white"
  47. barStyle="dark-content"
  48. />
  49. {this.spinerRender()}
  50. </Root>
  51. );
  52. }
Add Comment
Please, Sign In to add comment