1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import {Navigation} from 'react-native-navigation';
-
- // screen related book keeping
- import {registerScreens} from './screens';
- registerScreens();
-
- // this will start our app
- Navigation.startTabBasedApp({
- tabs: [
- {
- label: 'Collapsing',
- screen: 'example.CollapsingTopBarScreen',
- icon: require('../img/one.png'),
- title: 'Collapsing',
- },
- {
- label: 'One',
- screen: 'example.FirstTabScreen',
- icon: require('../img/one.png'),
- selectedIcon: require('../img/one_selected.png'),
- title: 'Screen One'
- },
- {
- label: 'Two',
- screen: 'example.SecondTabScreen',
- icon: require('../img/two.png'),
- selectedIcon: require('../img/two_selected.png'),
- title: 'Screen Two',
- navigatorStyle: {
- tabBarBackgroundColor: '#4dbce9',
- }
- }
- ],
- appStyle: {
- tabBarBackgroundColor: '#0f2362',
- tabBarButtonColor: '#ffffff',
- tabBarSelectedButtonColor: '#63d7cc'
-
- }
- });
- //Navigation.startSingleScreenApp({
- // screen: {
- // screen: 'example.FirstTabScreen',
- // title: 'Navigation',
- // navigatorStyle: {
- // navBarBackgroundColor: '#4dbce9',
- // navBarTextColor: '#ffff00',
- // navBarSubtitleTextColor: '#ff0000',
- // navBarButtonColor: '#ffffff',
- // statusBarTextColorScheme: 'light'
- // }
- // },
- // drawer: {
- // left: {
- // screen: 'example.SideMenu'
- // }
- // }
- //});
|