-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathApp.tsx
36 lines (31 loc) · 1.05 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
import 'react-native-gesture-handler';
import * as React from 'react';
import {ThemeProvider} from '@shopify/restyle';
import {Theme} from './src/components';
import {Navigation} from './src/components/Navigation';
import {NavigationContainer} from '@react-navigation/native';
import {
createStackNavigator,
CardStyleInterpolators,
} from '@react-navigation/stack';
import {Onboarding, Welcome} from './src/Authentication/';
const AuthenticationStack = createStackNavigator<Navigation>();
const AuthenticationNavigator = () => (
<AuthenticationStack.Navigator
headerMode={'none'}
screenOptions={{
cardStyleInterpolator: CardStyleInterpolators.forHorizontalIOS,
}}>
<AuthenticationStack.Screen name="Onboarding" component={Onboarding} />
<AuthenticationStack.Screen name="Welcome" component={Welcome} />
</AuthenticationStack.Navigator>
);
export default function App() {
return (
<ThemeProvider theme={Theme}>
<NavigationContainer>
<AuthenticationNavigator />
</NavigationContainer>
</ThemeProvider>
);
}