Skip to content
Permalink
32e78e0c2f
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
29 lines (24 sloc) 846 Bytes
import { NavigationContainer } from '@react-navigation/native';
import { createDrawerNavigator } from '@react-navigation/drawer';
const Drawer = createDrawerNavigator();
import HomeScreen from './drawer/Home';
import Map from './drawer/MainMap';
import Social from './drawer/Social';
export default function App() {
const myOptions = {
headerTitleAlign: 'center',
headerTintColor: 'cyan',
fontSize: 16,
fontWeight: 'bold',
headerStyle: { backgroundColor: 'darkorange'}
}
return (
<NavigationContainer>
<Drawer.Navigator>
<Drawer.Screen name="Home" component={HomeScreen} options={myOptions}/>
<Drawer.Screen name="Map" component={Map} options={myOptions}/>
<Drawer.Screen name="Social" component={Social} options={myOptions}/>
</Drawer.Navigator>
</NavigationContainer>
);
}