verdnatura-chat/app/views/index.js

24 lines
1.3 KiB
JavaScript

import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import OnboardingView from './OnboardingView';
import ProfileView from './ProfileView';
import RoomsListHeaderView from './RoomsListView/Header';
import RoomsListView from './RoomsListView';
import RoomView from './RoomView';
import RoomHeaderView from './RoomView/Header';
import SettingsView from './SettingsView';
import Sidebar from '../containers/Sidebar';
export const registerScreens = (store) => {
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('RoomHeaderView', () => RoomHeaderView, Provider, store);
Navigation.registerComponentWithRedux('SettingsView', () => SettingsView, Provider, store);
Navigation.registerComponentWithRedux('Sidebar', () => Sidebar, Provider, store);
};