-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.tsx
46 lines (41 loc) · 1.3 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
import 'react-native-gesture-handler';
import React from 'react';
import {StatusBar} from 'react-native';
import {Provider} from 'react-redux';
import {NavigationContainer} from '@react-navigation/native';
import {createStackNavigator} from '@react-navigation/stack';
import {PersistGate} from 'redux-persist/integration/react';
import {store, persistor} from './src/redux';
import {
HomeScreen,
ChooseProblemScreen,
AddProblemScreen,
MainScreen,
} from './src/screens';
declare const global: {HermesInternal: null | {}};
const Stack = createStackNavigator();
const App = () => {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<NavigationContainer>
<StatusBar />
<Stack.Navigator
headerMode="none"
screenOptions={{
animationEnabled: false,
}}>
<Stack.Screen name="Home" component={HomeScreen} />
<Stack.Screen name="Main" component={MainScreen} />
<Stack.Screen
name="ChooseProblem"
component={ChooseProblemScreen}
/>
<Stack.Screen name="AddProblem" component={AddProblemScreen} />
</Stack.Navigator>
</NavigationContainer>
</PersistGate>
</Provider>
);
};
export default App;