import React from 'react-native';
import RouteMaster from './routes/RouteMaster';
import RouteMapper from './navigation/RouteMapper';
import GlobalStyles from '../settings/styles';
const {
Navigator,
StyleSheet,
Platform,
View
} = React;
const styles = StyleSheet.create({
navbar: {
backgroundColor: GlobalStyles.get('CIRCLE_NAVBAR_BG'),
flexDirection:'row',
justifyContent: 'center',
},
container: {
flex: 1,
marginTop: (Platform.OS === 'ios' ? 64 : 56)
}
});
export default class extends React.Component {
renderScene(route, nav) {
const Component = route.component;
const props = route.props || {};
return (
);
}
componentWillMount() {
this.initialRoute = RouteMaster.get('LOGIN');
}
render() {
return (
}
configureScene={(route) => {
if (route.sceneConfig) {
return route.sceneConfig;
}
return Navigator.SceneConfigs.PushFromRight;
}}
/>
);
}
};