vn-verdnaturachat/app/navigation.js

28 lines
1.1 KiB
JavaScript
Raw Normal View History

2017-08-12 20:52:55 +00:00
import { Navigation } from 'react-native-navigation';
2017-08-13 01:35:09 +00:00
import { Provider } from 'react-redux';
2017-08-09 01:40:55 +00:00
import LoginView from './views/login';
import NewServerView from './views/serverNew';
import ListServerView from './views/serverList';
import RoomsListView from './views/roomsList';
import RoomView from './views/room';
import PhotoView from './views/Photo';
import CreateChannel from './views/CreateChannel';
import store from './lib/createStore';
2017-08-09 17:14:50 +00:00
2017-08-13 01:35:09 +00:00
Navigation.registerComponent('Rooms', () => RoomsListView, store, Provider);
Navigation.registerComponent('Room', () => RoomView, store, Provider);
Navigation.registerComponent('Photo', () => PhotoView, store, Provider);
2017-08-13 01:35:09 +00:00
Navigation.registerComponent('ListServer', () => ListServerView, store, Provider);
Navigation.registerComponent('Login', () => LoginView, store, Provider);
Navigation.registerComponent('NewServer', () => NewServerView, store, Provider);
Navigation.registerComponent('CreateChannel', () => CreateChannel, store, Provider);
2017-08-09 16:19:17 +00:00
2017-08-12 20:52:55 +00:00
Navigation.startSingleScreenApp({
screen: {
screen: 'ListServer',
title: 'ListServer'
2017-08-13 01:44:22 +00:00
},
animationType: 'none'
2017-08-09 16:19:17 +00:00
});