-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
30 lines (27 loc) · 900 Bytes
/
app.js
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
import "react-native-gesture-handler";
import { NativeBaseProvider } from "native-base";
import { NavigationContainer } from "@react-navigation/native";
import * as NavigationBar from "expo-navigation-bar";
import { useEffect } from "react";
import MainNavigator from "./Navigators/MainNavigator";
import theme from "./Themes/theme";
import { Platform } from "react-native";
import { Provider } from "react-redux";
import store from "./Redux/store";
export default function App() {
useEffect(() => {
if (Platform.OS === "android") {
NavigationBar.setPositionAsync("absolute");
NavigationBar.setBackgroundColorAsync("#ffffff00");
}
}, []);
return (
<Provider store={store}>
<NavigationContainer>
<NativeBaseProvider theme={theme}>
<MainNavigator></MainNavigator>
</NativeBaseProvider>
</NavigationContainer>
</Provider>
);
}