forked from wix-incubator/react-native-keyboard-input
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.android.js
28 lines (25 loc) · 813 Bytes
/
index.android.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import KeyboardAppScreen from './demo/demoScreen';
import DemoRootScreen from './demo/demoRoot';
import {Navigation} from 'react-native-navigation';
Navigation.registerComponent('screens.star', () => KeyboardAppScreen);
Navigation.registerComponent('screens.settings', () => DemoRootScreen);
Navigation.registerComponent('screens.innerScreen', () => KeyboardAppScreen);
Navigation.startTabBasedApp({
tabs: [
{
label: 'Main Tab',
screen: 'screens.star',
icon: require('./demo/res/star.png'),
title: 'Main Tab',
passProps: {
message: 'On the main tab, the keyboard input is in the root screen!'
}
},
{
label: 'Second Tab',
screen: 'screens.settings',
icon: require('./demo/res/settings.png'),
title: 'Secondary Tab'
}
]
});