Skip to content

Commit

Permalink
feat: setup stack navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj committed Sep 16, 2020
1 parent 0de5a74 commit d36acc4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createDrawerNavigator } from '@react-navigation/drawer'
import { createStackNavigator } from '@react-navigation/stack'

import HomeScreen from './screens/HomeScreen'
import SearchScreen from './screens/SearchScreen'

import Screens from './lib/screens'

const Drawer = createDrawerNavigator()
const Stack = createStackNavigator()

const App = () => (
<NavigationContainer>
<Drawer.Navigator>
<Drawer.Screen name={Screens.Home} component={HomeScreen} />
<Drawer.Screen name={Screens.Search} component={SearchScreen} />
</Drawer.Navigator>
<Stack.Navigator headerMode="none">
<Stack.Screen name={Screens.Home} component={HomeScreen} />
<Stack.Screen name={Screens.Search} component={SearchScreen} />
</Stack.Navigator>
</NavigationContainer>
)

Expand Down

0 comments on commit d36acc4

Please sign in to comment.