This repository has been archived by the owner on Oct 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.ios.js
36 lines (32 loc) · 1.67 KB
/
index.ios.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
29
30
31
32
33
34
35
36
import { Navigation } from 'react-native-navigation';
import Home from './src/components/Home';
import CameraPlay from './src/components/CameraPlay';
import CameraRecord from './src/components/CameraRecord';
import App from './src/components/App';
import { createStore, combineReducers } from 'redux';
import { Provider } from 'react-redux';
import app from './src/redux/reducers/app';
const store = createStore(combineReducers({ app }));
Navigation.registerComponent('Home', () => Home, store, Provider);
Navigation.registerComponent('CameraRecord', () => CameraRecord, store, Provider);
Navigation.registerComponent('CameraPlay', () => CameraPlay, store, Provider);
Navigation.registerComponent('App', () => App, store, Provider);
Navigation.startSingleScreenApp({
screen:
{
screen: 'App'
},
// drawer: { // optional, add this if you want a side menu drawer in your app
// left: { // optional, define if you want a drawer from the left
// screen: 'example.FirstSideMenu', // unique ID registered with Navigation.registerScreen
// passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
// },
// right: { // optional, define if you want a drawer from the right
// screen: 'example.SecondSideMenu', // unique ID registered with Navigation.registerScreen
// passProps: {} // simple serializable object that will pass as props to all top screens (optional)
// },
// disableOpenGesture: false // optional, can the drawer be opened with a swipe instead of button
// },
// passProps: {}, // simple serializable object that will pass as props to all top screens (optional)
animationType: 'slide-down'
});