I am working on React native App which is working fine. But when i import firebase crashlytics it stuck at launch screen if i remove it again app work fine?
As I am new to react i am not able to get root cause for this issue?
i am trying to import crashlytics in index.js as bellow
//import '@react-native-firebase/crashlytics'
or
//import {crashlytics} from '@react-native-firebase/crashlytics';
or
import crashlytics from '@react-native-firebase/crashlytics';
Please suggest root cause, solution or way to fix this issue. Please let me know if more info needed to understand this issue.
Thank you for helping.
app.js
import React from "react"
import { YellowBox } from 'react-native';
import { View } from 'react-native';
import { Root } from "native-base"
import UserInactivity from 'react-native-user-inactivity';
import { Provider } from 'mobx-react';
import SplashScreen from 'react-native-splash-screen';
import AppNavigatorRoot, { AppNavigationUtils } from "src/routers/navigations";
import store from 'src/store/';
import Loading from 'src/components/loading';
import Dialog from 'src/components/dialog';
import OAuthAPI from 'src/api/oauth';
import * as CoreConfig from 'src/config/config';
import HocErrorCatch from 'src/common/error';
index.js
import {AppRegistry} from 'react-native';
import App from './App';
// import {name as appName} from './app.json';
//import '@react-native-firebase/crashlytics'
//import { } from '@react-native-firebase/crashlytics';
//import crashlytics from '@react-native-firebase/crashlytics';
AppRegistry.registerComponent("xyz", () => App);
error log
