-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
26 lines (23 loc) · 837 Bytes
/
index.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
// Packages Imports
import "react-native-gesture-handler";
import { AppRegistry } from "react-native";
import { PersistGate } from "redux-persist/integration/react";
import { Provider } from "react-redux";
// Local Files/App/Components/Store import
import App from "./App";
import { store, persistor } from "./store/configureStore";
import { GestureHandlerRootView } from "react-native-gesture-handler";
// Headless Check for PushNotifications
function HeadlessCheck({ isHeadless }) {
return isHeadless ? null : (
<GestureHandlerRootView style={{ flex: 1 }}>
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<App />
</PersistGate>
</Provider>
</GestureHandlerRootView>
);
}
// registering the App
AppRegistry.registerComponent("main", () => HeadlessCheck);