-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
41 lines (37 loc) · 1.4 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
import { StyleSheet } from "react-native";
import { NavigationContainer } from "@react-navigation/native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import BottomTabs from "./components/BottomTabs";
import { store, persistor } from "./store/index";
import { Provider } from "react-redux";
import { LogBox } from "react-native";
import { PersistGate } from "redux-persist/integration/react";
LogBox.ignoreLogs([
"AsyncStorage has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-async-storage/async-storage' instead of 'react-native'. See https://github.com/react-native-async-storage/async-storage",
,
"EventEmitter.removeListener('change', ...): Method has been deprecated. Please instead use `remove()` on the subscription returned by `EventEmitter.addListener`.",
,
"Task orphaned for request",
]);
// let persistor = persistStore(store);
export default function App() {
return (
<Provider store={store}>
<PersistGate persistor={persistor}>
<SafeAreaProvider>
<NavigationContainer>
<BottomTabs />
</NavigationContainer>
</SafeAreaProvider>
</PersistGate>
</Provider>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: "#fff",
alignItems: "center",
justifyContent: "center",
},
});