-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.tsx
74 lines (70 loc) · 2.34 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import React from 'react';
import {ThemeProvider} from 'styled-components/native';
import theme from './src/theme/theme';
import HomeScreen from './src/screens/home/home.screen';
import OnBoarding from './src/screens/onboarding/onboarding.screen';
import SplashScreen from './src/screens/splash/splash.screen';
import AddNewBank from './src/screens/bank/new-bank.screen';
import AddNewWallet from './src/screens/wallet/wallet.screen';
import {NavigationContainer} from '@react-navigation/native';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import ReceiveScreen from './src/screens/request/receive/receive.screen';
import {ConfirmScreen, VerifyWallet} from './src/screens';
import {RequestSuccess} from './src/screens/request-success/request-success.screen';
const Stack = createNativeStackNavigator();
const App: React.FC = () => {
return (
<ThemeProvider theme={theme}>
<NavigationContainer>
<Stack.Navigator initialRouteName="Splash">
<Stack.Screen
name="Splash"
component={SplashScreen}
options={{headerShown: false}}
/>
<Stack.Screen
name="Onboarding"
component={OnBoarding}
options={{headerShown: false}}
/>
<Stack.Screen
name="Home"
component={HomeScreen}
options={{headerShown: false}}
/>
<Stack.Screen
name="Receive"
component={ReceiveScreen}
options={{headerShown: false}}
/>
<Stack.Screen
name="Bank"
component={AddNewBank}
options={{headerShown: false}}
/>
<Stack.Screen
name="Wallet"
component={AddNewWallet}
options={{headerShown: false}}
/>
<Stack.Screen
name="verifyWallet"
component={VerifyWallet}
options={{headerShown: false}}
/>
<Stack.Screen
name="ConfirmPay"
component={ConfirmScreen}
options={{headerShown: false}}
/>
<Stack.Screen
name="Success"
component={RequestSuccess}
options={{headerShown: false}}
/>
</Stack.Navigator>
</NavigationContainer>
</ThemeProvider>
);
};
export default App;