35 lines
741 B
JavaScript
35 lines
741 B
JavaScript
import React from 'react';
|
|
import { StyleSheet, View } from 'react-native';
|
|
import {createAppContainer} from 'react-navigation';
|
|
import { createStackNavigator } from 'react-navigation-stack';
|
|
import UserInterface from './UserInterface';
|
|
import MapsInterface from './MapsInterface';
|
|
|
|
const AppNavigator = createStackNavigator(
|
|
{
|
|
Home: UserInterface,
|
|
Maps: MapsInterface,
|
|
},
|
|
{
|
|
initialRouteName: 'Home',
|
|
headerMode: 'none',
|
|
navigationOptions: {
|
|
headerVisible: false,
|
|
}
|
|
}
|
|
);
|
|
|
|
|
|
export default createAppContainer(AppNavigator);
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
backgroundColor: '#fff',
|
|
alignItems: 'center',
|
|
justifyContent: 'center',
|
|
}
|
|
});
|