-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.js
24 lines (21 loc) · 1.07 KB
/
App.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import 'react-native-gesture-handler'
import React from 'react'
import { NavigationContainer } from '@react-navigation/native'
import { createStackNavigator, TransitionPresets } from '@react-navigation/stack'
const Stack = createStackNavigator()
import Home from './routes/Home'
import CameraScreen from './routes/CameraScreen'
import Document from './routes/Document'
import FilterScreen from './routes/FilterScreen'
export default function App() {
return (
<NavigationContainer>
<Stack.Navigator initialRouteName="Home" screenOptions={{ headerShown : false }}>
<Stack.Screen name="Home" component={Home} options={{ ...TransitionPresets.SlideFromRightIOS }}/>
<Stack.Screen name="Camera" component={CameraScreen} options={{ ...TransitionPresets.SlideFromRightIOS }} />
<Stack.Screen name="Document" component={Document} options={{ ...TransitionPresets.SlideFromRightIOS }}/>
<Stack.Screen name="FilterScreen" component={FilterScreen} options={{ ...TransitionPresets.SlideFromRightIOS }}/>
</Stack.Navigator>
</NavigationContainer>
)
}