2017-08-12 20:52:55 +00:00
|
|
|
import { Navigation } from 'react-native-navigation';
|
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-10 16:25:50 +00:00
|
|
|
import CreateChannel from './views/CreateChannel';
|
2017-08-03 18:23:43 +00:00
|
|
|
|
2017-08-09 17:14:50 +00:00
|
|
|
|
2017-08-12 20:52:55 +00:00
|
|
|
Navigation.registerComponent('Rooms', () => RoomsListView);
|
|
|
|
Navigation.registerComponent('Room', () => RoomView);
|
|
|
|
Navigation.registerComponent('ListServer', () => ListServerView);
|
|
|
|
Navigation.registerComponent('Login', () => LoginView);
|
|
|
|
Navigation.registerComponent('NewServer', () => NewServerView);
|
|
|
|
Navigation.registerComponent('CreateChannel', () => CreateChannel);
|
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-11 18:18:09 +00:00
|
|
|
}
|
2017-08-09 16:19:17 +00:00
|
|
|
});
|