Rocket.Chat.ReactNative/app/navigation.js

40 lines
805 B
JavaScript
Raw Normal View History

2017-08-03 18:23:43 +00:00
import { StackNavigator } from 'react-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-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-09 01:40:55 +00:00
Rooms: { screen: RoomsListView },
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'
}
});