-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
23 lines (19 loc) · 801 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, TransitionPresets } from '@react-navigation/stack';
import { Screen } from './src/constants';
import { Home } from './src/screens/Home';
import { DialogTest } from './src/screens/Dialog';
const Stack = createStackNavigator();
const options = { ...TransitionPresets.SlideFromRightIOS };
const App = () => {
return (
<NavigationContainer>
<Stack.Navigator headerMode="none">
<Stack.Screen name={Screen.Home} component={Home} options={options} />
<Stack.Screen name={Screen.DialogTest} component={DialogTest} options={options} />
</Stack.Navigator>
</NavigationContainer>
);
};
export default App;