-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
39 lines (34 loc) · 1.38 KB
/
App.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
37
38
39
import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';
import { name as appName } from './app.json';
import configureStore from './src/store/configureStore';
import AuthScreen from './src/screens/AuthScreen';
import SharePlaceScreen from './src/screens/SharePlaceScreen';
import FindPlaceScreen from './src/screens/FindPlaceScreen';
import ItemDetailsScreen from './src/screens/ItemDetailsScreen';
import SideMenuScreen from './src/screens/SideMenuScreen';
const store = configureStore();
Navigation.registerComponentWithRedux(`${appName}.AuthScreen`, () => AuthScreen, Provider, store);
Navigation.registerComponent(`${appName}.SideMenuScreen`, () => SideMenuScreen);
Navigation.registerComponentWithRedux(`${appName}.SharePlaceScreen`, () => SharePlaceScreen, Provider, store);
Navigation.registerComponentWithRedux(`${appName}.FindPlaceScreen`, () => FindPlaceScreen, Provider, store);
Navigation.registerComponentWithRedux(`${appName}.ItemDetailsScreen`, () => ItemDetailsScreen, Provider, store);
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [{
component: {
name: `${appName}.AuthScreen`,
},
}],
options: {
topBar: {
visible: false,
drawBehind: true,
},
},
},
},
});
});