Rocket.Chat.ReactNative/app/navigation.js

40 lines
767 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';
2017-08-07 00:34:35 +00:00
import NewServerView from './servers/new';
import ListServerView from './servers/list';
2017-08-05 18:16:32 +00:00
import RoomsView from './rooms';
import RoomView from './room';
2017-08-03 18:23:43 +00:00
2017-08-07 00:34:35 +00:00
const navigationOptions = {
// headerStyle: {
// backgroundColor: '#c1272d'
// },
// headerTitleStyle: {
// color: '#fff'
// }
};
2017-08-03 18:23:43 +00:00
export default new StackNavigator({
2017-08-07 00:34:35 +00:00
ListServer: {
screen: ListServerView,
navigationOptions
},
NewServer: {
screen: NewServerView,
navigationOptions
2017-08-03 18:23:43 +00:00
},
Login: { screen: LoginView },
2017-08-04 00:34:37 +00:00
Rooms: { screen: RoomsView },
2017-08-07 00:34:35 +00:00
Room: {
screen: RoomView
// navigationOptions: {
// header: null
// }
}
2017-08-03 18:23:43 +00:00
}, {
2017-08-07 00:34:35 +00:00
// initialRouteName: 'Room',
2017-08-03 18:23:43 +00:00
cardStyle: {
backgroundColor: '#fff'
}
});