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';
|
2017-08-15 19:28:46 +00:00
|
|
|
import PhotoView from './views/Photo';
|
2017-08-10 16:25:50 +00:00
|
|
|
import CreateChannel from './views/CreateChannel';
|
2017-08-13 23:02:46 +00:00
|
|
|
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);
|
2017-08-15 19:28:46 +00:00
|
|
|
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: 'Rooms',
|
|
|
|
title: 'Channels'
|
2017-08-13 01:44:22 +00:00
|
|
|
},
|
|
|
|
animationType: 'none'
|
2017-08-09 16:19:17 +00:00
|
|
|
});
|