/** * Created by zack on 2018/4/19. */ import {Navigation} from 'react-native-navigation' import { Platform } from 'react-native' const RouterEntry = { run: () => { Navigation.startSingleScreenApp({ screen: { screen: 'LearnLevelViewController', title: '', navigatorStyle: { statusBarTextColorScheme: 'light', statusBarColor: '#0281c5', navBarHidden: true } }, appStyle: { orientation: 'portrait' } }); // const BaseNavigatorStyle = { // drawUnderNavBar: true, // drawUnderTabBar: true, // navBarHidden: true, // navBarBackgroundColor: '#ffffff', // } // // Navigation.startTabBasedApp({ // tabs: [ // { // label: '玩双语', // tab label as appears under the icon in iOS (optional) // screen: 'PlayViewController', // unique ID registered with Navigation.registerScreen // icon: require('../resources/images/TabBar/icon玩双语.png'), // local image asset for the tab icon unselected state (optional on iOS) // 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) // title: '', // title of the screen as appears in the nav bar (optional) // navigatorStyle: BaseNavigatorStyle // }, // { // label: '学双语', // tab label as appears under the icon in iOS (optional) // screen: 'LearnViewController', // unique ID registered with Navigation.registerScreen // icon: require('../resources/images/TabBar/icon学双语.png'), // local image asset for the tab icon unselected state (optional on iOS) // 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) // title: '', // title of the screen as appears in the nav bar (optional) // navigatorStyle: BaseNavigatorStyle // }, // { // label: Platform.OS === 'ios' ? '' : '视频', // tab label as appears under the icon in iOS (optional) // screen: 'CameraViewController', // unique ID registered with Navigation.registerScreen // icon: require('../resources/images/TabBar/icon相机.png'), // local image asset for the tab icon unselected state (optional on iOS) // 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) // // title: '', // title of the screen as appears in the nav bar (optional) // navigatorStyle: BaseNavigatorStyle, // iconInsets: { // add this to change icon position (optional, iOS only). // top: 0, // optional, default is 0. // left: 0, // optional, default is 0. // bottom: -12, // optional, default is 0. // right: 0 // optional, default is 0. // }, // }, // { // label: '社区', // tab label as appears under the icon in iOS (optional) // screen: 'CommunityViewController', // unique ID registered with Navigation.registerScreen // icon: require('../resources/images/TabBar/icon社区.png'), // local image asset for the tab icon unselected state (optional on iOS) // selectedIcon: require('../resources/images/TabBar/icon社区.png'), // local image asset for the tab icon selected state (optional, iOS only. On Android, Use `tabBarSelectedButtonColor` instead) // title: '', // title of the screen as appears in the nav bar (optional) // navigatorStyle: BaseNavigatorStyle // }, // { // label: '聊天', // tab label as appears under the icon in iOS (optional) // screen: 'ChatViewController', // unique ID registered with Navigation.registerScreen // icon: require('../resources/images/TabBar/icon聊天.png'), // local image asset for the tab icon unselected state (optional on iOS) // 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) // title: '', // title of the screen as appears in the nav bar (optional) // navigatorStyle: BaseNavigatorStyle // }, // ], // tabsStyle: { // // navBarBackgroundColor: '#377bb5', // // navBarTextColor: '#000000', // // navBarTranslucent: Platform.OS === 'ios' ? true : false, // // drawUnderNavBar: true, // //navBarTextColor: 'white', // // navBarButtonColor: 'white', // // statusBarTextColorScheme: 'light', // // drawUnderTabBar: true, // // statusBarColor: '#0281c5', // // navBarSubtitleColor: 'white', // // tabBarSelectedButtonColor: '#f01414', // iOS only. change the color of the selected tab text // tabBarButtonColor: '#333333', // tabBarLabelColor: '#333333', // iOS only. change the color of tab text // tabBarSelectedLabelColor: 'f01414', // }, // appStyle: { // forceTitlesDisplay: true, // tabBarSelectedButtonColor: '#f01414', // iOS only. change the color of the selected tab text // tabBarButtonColor: '#333333', // navBarBackgroundColor: '#ffffff', // tabBarLabelColor: '#333333', // iOS only. change the color of tab text // tabBarSelectedLabelColor: 'f01414', // } // }) } } export default RouterEntry