-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathApp.tsx
64 lines (56 loc) · 2.37 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
import './shim';
import 'react-native-gesture-handler';
import { NavigationContainer } from '@react-navigation/native';
import { createStackNavigator, TransitionPresets } from '@react-navigation/stack';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import React, { useEffect } from 'react';
import { Provider } from 'react-redux'
import {store, persistor } from './store/WalletStateStore'
import { PersistGate } from 'redux-persist/integration/react'
import RootView from './views/RootView'
import CreateStepOne from './views/Create/CreateStepOne'
import CreateStepTwo from './views/Create/CreateStepTwo'
import Restore from './views/Restore/Restore'
import PickerView from './components/Settings/PickerView'
import ScanQRCode from './components/ScanQRCode'
import Send from './components/Send'
import { StatusBar, View } from 'react-native';
import SplashScreen from 'react-native-splash-screen'
const Stack = createStackNavigator<RootNavigationParamList>();
const App = () => {
useEffect(() => {
SplashScreen.hide()
}, [])
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<SafeAreaProvider>
<NavigationContainer>
<View style={{flex:1, backgroundColor:'#1A1E29'}}>
<StatusBar backgroundColor="#090C14" barStyle="light-content"/>
<Stack.Navigator mode="card" screenOptions={{...TransitionPresets.SlideFromRightIOS}} initialRouteName="Root" headerMode="none" >
<Stack.Screen name="Root" component={RootView} />
<Stack.Screen name="CreateStepOne" component={CreateStepOne} />
<Stack.Screen name="CreateStepTwo" component={CreateStepTwo} />
<Stack.Screen name="Restore" component={Restore} />
<Stack.Screen name="PickerView" component={PickerView} />
<Stack.Screen name="ScanQRCode" component={ScanQRCode} />
<Stack.Screen name="Send" component={Send} />
</Stack.Navigator>
</View>
</NavigationContainer>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
};
export default App;