Keine Beschreibung

RouterEntry.js 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /**
  2. * Created by zack on 2018/4/19.
  3. */
  4. import {Navigation} from 'react-native-navigation'
  5. import {
  6. Platform
  7. } from 'react-native'
  8. const RouterEntry = {
  9. run: () => {
  10. Navigation.startSingleScreenApp({
  11. screen: {
  12. screen: 'LearnLevelViewController',
  13. title: '',
  14. navigatorStyle: {
  15. statusBarTextColorScheme: 'light',
  16. statusBarColor: '#0281c5',
  17. navBarHidden: true
  18. }
  19. },
  20. appStyle: {
  21. orientation: 'portrait'
  22. }
  23. });
  24. // const BaseNavigatorStyle = {
  25. // drawUnderNavBar: true,
  26. // drawUnderTabBar: true,
  27. // navBarHidden: true,
  28. // navBarBackgroundColor: '#ffffff',
  29. // }
  30. //
  31. // Navigation.startTabBasedApp({
  32. // tabs: [
  33. // {
  34. // label: '玩双语', // tab label as appears under the icon in iOS (optional)
  35. // screen: 'PlayViewController', // unique ID registered with Navigation.registerScreen
  36. // icon: require('../resources/images/TabBar/icon玩双语.png'), // local image asset for the tab icon unselected state (optional on iOS)
  37. // selectedIcon: require('../resources/images/TabBar/icon玩双语hover.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
  38. // title: '', // title of the screen as appears in the nav bar (optional)
  39. // navigatorStyle: BaseNavigatorStyle
  40. // },
  41. // {
  42. // label: '学双语', // tab label as appears under the icon in iOS (optional)
  43. // screen: 'LearnViewController', // unique ID registered with Navigation.registerScreen
  44. // icon: require('../resources/images/TabBar/icon学双语.png'), // local image asset for the tab icon unselected state (optional on iOS)
  45. // selectedIcon: require('../resources/images/TabBar/icon学双语hover.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
  46. // title: '', // title of the screen as appears in the nav bar (optional)
  47. // navigatorStyle: BaseNavigatorStyle
  48. // },
  49. // {
  50. // label: Platform.OS === 'ios' ? '' : '视频', // tab label as appears under the icon in iOS (optional)
  51. // screen: 'CameraViewController', // unique ID registered with Navigation.registerScreen
  52. // icon: require('../resources/images/TabBar/icon相机.png'), // local image asset for the tab icon unselected state (optional on iOS)
  53. // selectedIcon: require('../resources/images/TabBar/icon相机hover.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
  54. // // title: '', // title of the screen as appears in the nav bar (optional)
  55. // navigatorStyle: BaseNavigatorStyle,
  56. // iconInsets: { // add this to change icon position (optional, iOS only).
  57. // top: 0, // optional, default is 0.
  58. // left: 0, // optional, default is 0.
  59. // bottom: -12, // optional, default is 0.
  60. // right: 0 // optional, default is 0.
  61. // },
  62. // },
  63. // {
  64. // label: '社区', // tab label as appears under the icon in iOS (optional)
  65. // screen: 'CommunityViewController', // unique ID registered with Navigation.registerScreen
  66. // icon: require('../resources/images/TabBar/icon社区.png'), // local image asset for the tab icon unselected state (optional on iOS)
  67. // selectedIcon: require('../resources/images/TabBar/icon社区.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
  68. // title: '', // title of the screen as appears in the nav bar (optional)
  69. // navigatorStyle: BaseNavigatorStyle
  70. // },
  71. // {
  72. // label: '聊天', // tab label as appears under the icon in iOS (optional)
  73. // screen: 'ChatViewController', // unique ID registered with Navigation.registerScreen
  74. // icon: require('../resources/images/TabBar/icon聊天.png'), // local image asset for the tab icon unselected state (optional on iOS)
  75. // selectedIcon: require('../resources/images/TabBar/icon聊天hover.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead)
  76. // title: '', // title of the screen as appears in the nav bar (optional)
  77. // navigatorStyle: BaseNavigatorStyle
  78. // },
  79. // ],
  80. // tabsStyle: {
  81. // // navBarBackgroundColor: '#377bb5',
  82. // // navBarTextColor: '#000000',
  83. // // navBarTranslucent: Platform.OS === 'ios' ? true : false,
  84. // // drawUnderNavBar: true,
  85. // //navBarTextColor: 'white',
  86. // // navBarButtonColor: 'white',
  87. // // statusBarTextColorScheme: 'light',
  88. // // drawUnderTabBar: true,
  89. // // statusBarColor: '#0281c5',
  90. // // navBarSubtitleColor: 'white',
  91. //
  92. // tabBarSelectedButtonColor: '#f01414', // iOS only. change the color of the selected tab text
  93. // tabBarButtonColor: '#333333',
  94. // tabBarLabelColor: '#333333', // iOS only. change the color of tab text
  95. // tabBarSelectedLabelColor: 'f01414',
  96. // },
  97. // appStyle: {
  98. // forceTitlesDisplay: true,
  99. // tabBarSelectedButtonColor: '#f01414', // iOS only. change the color of the selected tab text
  100. // tabBarButtonColor: '#333333',
  101. // navBarBackgroundColor: '#ffffff',
  102. // tabBarLabelColor: '#333333', // iOS only. change the color of tab text
  103. // tabBarSelectedLabelColor: 'f01414',
  104. // }
  105. // })
  106. }
  107. }
  108. export default RouterEntry