-
Notifications
You must be signed in to change notification settings - Fork 14
/
App.js
30 lines (28 loc) · 1.1 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
25
26
27
28
29
30
import React from 'react';
import { NavigationContainer } from '@react-navigation/native';
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack';
import AppStack from './app/Navigation/AppStack';
import AuthStack from './app/Navigation/AuthStack';
import { COLORS } from './app/Component/Constant/Color';
import Navigation from './app/Service/Navigation';
const Stack = createStackNavigator();
export default function App() {
return (
<NavigationContainer ref={r => Navigation.setTopLevelNavigator(r)}>
<Stack.Navigator
headerMode="none"
detachInactiveScreens={false}
initialRouteName="Auth"
screenOptions={{
cardStyle :{ backgroundColor: COLORS.white},
gestureEnabled: true,
backgroundColor:COLORS.button,
gestureDirection: 'horizontal',
...TransitionPresets.SlideFromRightIOS,
}}>
<Stack.Screen name="Auth" component={AuthStack} />
<Stack.Screen name="AppStack" component={AppStack} />
</Stack.Navigator>
</NavigationContainer>
);
}