Rocket.Chat.ReactNative/app/navigation.js

24 lines
483 B
JavaScript
Raw Normal View History

2017-08-03 18:23:43 +00:00
import { StackNavigator } from 'react-navigation';
2017-08-05 18:16:32 +00:00
import LoginView from './login';
import NewServerView from './new-server';
import RoomsView from './rooms';
import RoomView from './room';
2017-08-03 18:23:43 +00:00
export default new StackNavigator({
2017-08-04 00:34:37 +00:00
// Room: { screen: RoomView },
2017-08-03 18:23:43 +00:00
Home: {
navigationOptions: {
header: null
},
screen: NewServerView
},
Login: { screen: LoginView },
2017-08-04 00:34:37 +00:00
Rooms: { screen: RoomsView },
Room: { screen: RoomView }
2017-08-03 18:23:43 +00:00
}, {
cardStyle: {
backgroundColor: '#fff'
}
});