Rocket.Chat.ReactNative/app/views/index.js

24 lines
1.3 KiB
JavaScript
Raw Normal View History

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';
2018-10-31 18:40:08 +00:00
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);
2018-10-31 18:40:08 +00:00
Navigation.registerComponentWithRedux('RoomHeaderView', () => RoomHeaderView, Provider, store);
Navigation.registerComponentWithRedux('SettingsView', () => SettingsView, Provider, store);
Navigation.registerComponentWithRedux('Sidebar', () => Sidebar, Provider, store);
};