我正在开发运行良好的 React Native App。但是当我导入 firebase crashlytics 时,如果我再次删除它,它会卡在启动屏幕上,应用程序工作正常吗?
由于我是新手,我无法找到此问题的根本原因?
我正在尝试在 index.js 中导入 crashlytics 如下
//import '@react-native-firebase/crashlytics'
or
//import {crashlytics} from '@react-native-firebase/crashlytics';
or
import crashlytics from '@react-native-firebase/crashlytics';
请提出根本原因、解决方案或解决此问题的方法。如果需要更多信息来理解这个问题,请告诉我。
谢谢你的帮忙。
应用程序.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';
索引.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);
错误日志