-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
26 lines (23 loc) · 839 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
import NavComponent from "./screens/navigation/Navigation";
import { createStore } from "redux";
import { Provider } from "react-redux";
import { store, persistor } from "./src/storage/redux/Store";
import { PersistGate } from "redux-persist/integration/react";
import SText from "./src/components/SText";
import { PermissionsAndroid } from "react-native";
import Toast from "react-native-toast-message";
import { DeviceEventEmitter } from "react-native";
import { useEffect } from "react";
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS);
export default function App(props) {
return (
<>
<Provider store={store}>
<PersistGate persistor={persistor} loading={<SText>Loading ...</SText>}>
<NavComponent />
</PersistGate>
</Provider>
<Toast />
</>
);
}