-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.js
More file actions
64 lines (58 loc) · 1.78 KB
/
App.js
File metadata and controls
64 lines (58 loc) · 1.78 KB
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
import { useEffect } from 'react';
import { StatusBar } from 'react-native';
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import { Provider } from 'react-redux';
import { persistor, store } from './store/store';
import { PersistGate } from 'redux-persist/integration/react';
import SplashScreen from 'react-native-splash-screen';
import { Home, Search, Settings, About } from './screens';
import { LoadScreen } from './components';
const Stack = createNativeStackNavigator();
const App = () => {
useEffect(() => {
SplashScreen.hide();
}, [])
return (
<Provider store={store}>
<PersistGate loading={<LoadScreen/>} persistor={persistor}>
<NavigationContainer>
<StatusBar
backgroundColor="rgba(0,0,0,0.25)"
translucent={true}
barStyle="light-content"
/>
<Stack.Navigator
initialRouteName={"Home"}
screenOptions={{
headerShown: false,
gestureEnabled: true,
gestureDirection: 'vertical',
animation: 'fade_from_bottom',
presentation: 'card',
orientation: 'portrait',
}}
>
<Stack.Screen
name="Home"
component={Home}
/>
<Stack.Screen
name="Search"
component={Search}
/>
<Stack.Screen
name="Settings"
component={Settings}
/>
<Stack.Screen
name="About"
component={About}
/>
</Stack.Navigator>
</NavigationContainer>
</PersistGate>
</Provider>
)
}
export default App;