-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
44 lines (40 loc) · 1.33 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
37
38
39
40
41
42
43
44
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator } from '@react-navigation/stack';
import { ThemeProvider } from '@shopify/restyle';
import 'react-native-gesture-handler';
import { StyleSheet } from 'react-native';
import { darkTheme, theme } from './src/theme';
import Welcome from './src/screens/welcome';
import Onboarding from './src/screens/onboarding';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import Login from '@/screens/authentication/login';
const darkMode = false;
const AuthenticationStack = createStackNavigator();
const AuthenticationNavigator = () => (
<AuthenticationStack.Navigator
screenOptions={{
headerShown: false,
}}
>
<AuthenticationStack.Screen name="Onboarding" component={Onboarding} />
<AuthenticationStack.Screen name="Welcome" component={Welcome} />
<AuthenticationStack.Screen name="Login" component={Login} />
</AuthenticationStack.Navigator>
);
export default function App() {
return (
<ThemeProvider theme={darkMode ? darkTheme : theme}>
<NavigationContainer>
<AuthenticationNavigator />
</NavigationContainer>
</ThemeProvider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});