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';
|
|
|
|
import SettingsView from './SettingsView';
|
|
|
|
import Sidebar from '../containers/Sidebar';
|
|
|
|
|
|
|
|
export const registerScreens = (store) => {
|
2018-10-23 21:39:48 +00:00
|
|
|
Navigation.registerComponentWithRedux('OnboardingView', () => OnboardingView, Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('ProfileView', () => ProfileView, Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('RoomsListHeaderView', () => RoomsListHeaderView, Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('RoomsListView', () => gestureHandlerRootHOC(RoomsListView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('RoomView', () => gestureHandlerRootHOC(RoomView), Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('SettingsView', () => SettingsView, Provider, store);
|
|
|
|
Navigation.registerComponentWithRedux('Sidebar', () => Sidebar, Provider, store);
|
2018-07-10 13:40:32 +00:00
|
|
|
};
|