2018-07-10 13:40:32 +00:00
|
|
|
import { Navigation } from 'react-native-navigation';
|
|
|
|
import { Provider } from 'react-redux';
|
2018-09-19 14:18:32 +00:00
|
|
|
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
|
2018-07-10 13:40:32 +00:00
|
|
|
|
2018-08-10 17:26:36 +00:00
|
|
|
import OnboardingView from './OnboardingView';
|
2018-07-10 13:40:32 +00:00
|
|
|
import ProfileView from './ProfileView';
|
2018-08-31 16:46:33 +00:00
|
|
|
import RoomsListHeaderView from './RoomsListView/Header';
|
2018-07-10 13:40:32 +00:00
|
|
|
import RoomsListView from './RoomsListView';
|
|
|
|
import RoomView from './RoomView';
|
2018-10-31 18:40:08 +00:00
|
|
|
import RoomHeaderView from './RoomView/Header';
|
2018-07-10 13:40:32 +00:00
|
|
|
import SettingsView from './SettingsView';
|
|
|
|
import Sidebar from '../containers/Sidebar';
|
|
|
|
|
|
|
|
export const registerScreens = (store) => {
|
2018-11-14 21:42:03 +00:00
|
|
|
Navigation.registerComponentWithRedux('OnboardingView', () => gestureHandlerRootHOC(OnboardingView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('ProfileView', () => gestureHandlerRootHOC(ProfileView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('RoomsListHeaderView', () => gestureHandlerRootHOC(RoomsListHeaderView), Provider, store);
|
2018-10-23 21:39:48 +00:00
|
|
|
Navigation.registerComponentWithRedux('RoomsListView', () => gestureHandlerRootHOC(RoomsListView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('RoomView', () => gestureHandlerRootHOC(RoomView), Provider, store);
|
2018-11-14 21:42:03 +00:00
|
|
|
Navigation.registerComponentWithRedux('RoomHeaderView', () => gestureHandlerRootHOC(RoomHeaderView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('SettingsView', () => gestureHandlerRootHOC(SettingsView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('Sidebar', () => gestureHandlerRootHOC(Sidebar), Provider, store);
|
2018-07-10 13:40:32 +00:00
|
|
|
};
|