-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
28 lines (24 loc) · 1.31 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
import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';
import AnnouncementsScreen from './src/screens/Announcements/Announcements';
import AuthScreen from './src/screens/Auth/Auth';
import SharePlaceScreen from './src/screens/SharePlace/SharePlace';
import FindPlaceScreen from './src/screens/FindPlace/FindPlace';
import PlaceDetailScreen from './src/screens/PlaceDetail/PlaceDetail';
import SideDrawer from './src/screens/SideDrawer/SideDrawer';
import configureStore from './src/store/configureStore';
const store = configureStore();
// Register Screens
Navigation.registerComponent('brotherlylove.AnnouncementsScreen', () => AnnouncementsScreen, store, Provider);
Navigation.registerComponent('brotherlylove.AuthScreen', () => AuthScreen, store, Provider);
Navigation.registerComponent('brotherlylove.SharePlaceScreen', () => SharePlaceScreen, store, Provider);
Navigation.registerComponent('brotherlylove.FindPlaceScreen', () => FindPlaceScreen, store, Provider);
Navigation.registerComponent('brotherlylove.PlaceDetailScreen', () => PlaceDetailScreen, store, Provider);
Navigation.registerComponent('brotherlylove.SideDrawer', () => SideDrawer, store, Provider);
// Start App
Navigation.startSingleScreenApp({
screen: {
screen: 'brotherlylove.AuthScreen',
title: 'Login'
}
});