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-21 00:11:46 +00:00
|
|
|
import { PrivateScreen, HomeScreen, authenticated } from './index';
|
2017-08-09 17:14:50 +00:00
|
|
|
|
2017-08-21 00:11:46 +00:00
|
|
|
// console.log('fisateile/', PublicRoute(PublicScreen));
|
|
|
|
Navigation.registerComponent('home', () => HomeScreen, store, Provider);
|
|
|
|
Navigation.registerComponent('private', () => PrivateScreen, store, Provider);
|
|
|
|
Navigation.registerComponent('public', () => ListServerView, store, Provider);
|
|
|
|
Navigation.registerComponent('Rooms', () => authenticated(RoomsListView), store, Provider);
|
2017-08-13 01:35:09 +00:00
|
|
|
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: {
|
2017-08-21 00:11:46 +00:00
|
|
|
screen: 'home',
|
|
|
|
title: 'private'
|
2017-08-13 01:44:22 +00:00
|
|
|
},
|
2017-08-21 00:11:46 +00:00
|
|
|
animationType: 'slide-up'
|
2017-08-09 16:19:17 +00:00
|
|
|
});
|