|
| 1 | +/** |
| 2 | + * Sample React Native App |
| 3 | + * https://github.com/facebook/react-native |
| 4 | + * |
| 5 | + * Generated with the TypeScript template |
| 6 | + * https://github.com/react-native-community/react-native-template-typescript |
| 7 | + * |
| 8 | + * @format |
| 9 | + */ |
| 10 | + |
| 11 | +import './shim'; |
| 12 | +import 'react-native-gesture-handler'; |
| 13 | +import { NavigationContainer } from '@react-navigation/native'; |
| 14 | +import { createStackNavigator } from '@react-navigation/stack'; |
| 15 | +import { SafeAreaProvider } from 'react-native-safe-area-context'; |
| 16 | +import React from 'react'; |
| 17 | +import { Provider } from 'react-redux' |
| 18 | +import {store, persistor } from './store/WalletStateStore' |
| 19 | +import { PersistGate } from 'redux-persist/integration/react' |
| 20 | +import RootView from './views/RootView' |
| 21 | +import CreateStepOne from './views/Create/CreateStepOne' |
| 22 | +import CreateStepTwo from './views/Create/CreateStepTwo' |
| 23 | +import Restore from './views/Restore/Restore' |
| 24 | +import PickerView from './components/Settings/PickerView' |
| 25 | +import ScanQRCode from './components/ScanQRCode' |
| 26 | +import Send from './components/Send' |
| 27 | +import { StatusBar, View } from 'react-native'; |
| 28 | + |
| 29 | +const Stack = createStackNavigator<RootNavigationParamList>(); |
| 30 | + |
| 31 | + |
| 32 | +const App = () => { |
| 33 | + |
| 34 | + return ( |
| 35 | + <Provider store={store}> |
| 36 | + <PersistGate loading={null} persistor={persistor}> |
| 37 | + <SafeAreaProvider> |
| 38 | + <NavigationContainer> |
| 39 | + <View style={{flex:1, backgroundColor:'#1A1E29'}}> |
| 40 | + <StatusBar backgroundColor="#090C14" barStyle="light-content"/> |
| 41 | + <Stack.Navigator initialRouteName="Root" headerMode="none" > |
| 42 | + <Stack.Screen name="Root" component={RootView} /> |
| 43 | + <Stack.Screen name="CreateStepOne" component={CreateStepOne} /> |
| 44 | + <Stack.Screen name="CreateStepTwo" component={CreateStepTwo} /> |
| 45 | + <Stack.Screen name="Restore" component={Restore} /> |
| 46 | + <Stack.Screen name="PickerView" component={PickerView} /> |
| 47 | + <Stack.Screen name="ScanQRCode" component={ScanQRCode} /> |
| 48 | + <Stack.Screen name="Send" component={Send} /> |
| 49 | + </Stack.Navigator> |
| 50 | + </View> |
| 51 | + </NavigationContainer> |
| 52 | + </SafeAreaProvider> |
| 53 | + </PersistGate> |
| 54 | + </Provider> |
| 55 | + ); |
| 56 | +}; |
| 57 | + |
| 58 | + |
| 59 | +export default App; |
0 commit comments