-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (30 loc) · 1.25 KB
/
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
27
28
29
30
import { registerRootComponent } from "expo";
import App from "./App";
import firebase from "firebase/app";
import { firebaseConfig } from "./firebaseConfig";
// import messaging from "@react-native-firebase/messaging";
// import { cos } from "react-native-reanimated";
// import { useNavigation } from "react-navigation-hooks";
// import SplashScreen from 'react-native-splash-screen';
import { LogBox } from 'react-native';
// firebase.firestore().clearPersistence();
if (!firebase.apps.length) {
firebase.initializeApp(firebaseConfig);
}
// SplashScreen.hide();
// const { navigate } = useNavigation();
// // firebase.getInstance().setPersistenceEnabled(false);
// messaging().setBackgroundMessageHandler(async (remoteMessage) => {
// console.log("Message handled in the background!", remoteMessage);
// });
// const notificationOpen = messaging().getInitialNotification();
// if (notificationOpen) {
// navigate("SalesManagement");
// }
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in the Expo client or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
// console.disableYellowBox = true;
LogBox.ignoreLogs(['Warning: ...']);
LogBox.ignoreAllLogs();