vn-verdnaturachat/app/navigation.js

24 lines
499 B
JavaScript
Raw Normal View History

2017-08-03 18:23:43 +00:00
import { StackNavigator } from 'react-navigation';
import { LoginView } from './login';
import { NewServerView } from './new-server';
import { RoomsView } from './rooms';
2017-08-04 00:34:37 +00:00
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'
}
});