不变违规:本机模块不能为null。 React Native Firebase应用

时间:2020-08-25 03:53:35

标签: reactjs firebase react-native

我正在使用Firebase开发React Native应用程序。 当我运行应用程序时,构建成功进行,但是在模拟器上安装应用程序时会出现问题。我的应用中有以下节点模块,如下所示:

“依赖项”:{ “ @ fortawesome / fontawesome-svg-core”:“ ^ 1.2.27”, “ @ fortawesome / free-brands-svg-icons”:“ ^ 5.12.1”, “ @ fortawesome / free-regular-svg-icons”:“ ^ 5.12.1”, “ @ fortawesome / free-solid-svg-icons”:“ ^ 5.12.1”, “ @ fortawesome / react-native-fontawesome”:“ ^ 0.2.2”, “ @ react-native-community / google-signin”:“ ^ 4.0.3”, “ @ react-native-community / masked-view”:“ ^ 0.1.10”, “ @ react-native-community / toolbar-android”:“ 0.1.0-rc.2”, “ @ react-native-firebase / app”:“ ^ 7.0.1”, “ @ react-native-firebase / auth”:“ ^ 7.0.2”, “ axios”:“ ^ 0.19.2”, “ base-64”:“ ^ 0.1.0”, “ firebase”:“ ^ 7.8.2”, “ formik”:“ ^ 2.1.4”, “ native-base”:“ ^ 2.13.8”, “ qs”:“ ^ 6.9.3”, “ react”:“ 16.9.0”, “ react-native”:“ 0.61.5”, “ react-native-app-intro-slider”:“ 4.0.4”, “ react-native-awesome-alerts”:“ ^ 1.3.2”, “ react-native-elements”:“ ^ 1.2.7”, “ react-native-fbsdk”:“ ^ 1.1.2”, “ react-native-gesture-handler”:“ 1.7.0”, “ react-native-get-random-values”:“ ^ 1.3.1”, “ react-native-image-picker”:“ ^ 2.3.1”, “ react-native-ionicons”:“ 4.6.5”, “ react-native-linear-gradient”:“ ^ 2.5.6”, “ react-native-looped-carousel”:“ ^ 0.1.13”, “ react-native-media-controls”:“ ^ 2.0.1”, “ react-native-modal”:“ 11.5.6”, “ react-native-modal-loader”:“ ^ 1.3.0”, “ react-native-modalbox”:“ 2.0.0”, “ react-native-modals”:“ ^ 0.19.9”, “ react-native-orientation-locker”:“ ^ 1.1.8”, “ react-native-pixel-perfect”:“ ^ 1.0.2”, “ react-native-progress”:“ ^ 4.1.2”, “ react-native-reanimated”:“ ^ 1.7.0”, “ react-native-sensitive-ui”:“ ^ 2.1.1”, “ react-native-safe-area-context”:“ ^ 0.7.3”, “ react-native-screens”:“ ^ 2.0.0-beta.8”, “ react-native-slider”:“ ^ 0.11.0”, “ react-native-snap-carousel”:“ ^ 3.8.4”, “ react-native-sound”:“ ^ 0.11.0”, “ react-native-stars”:“ ^ 1.2.1”, “ react-native-svg”:“ ^ 11.0.1”, “ react-native-vector-icons”:“ ^ 6.6.0”, “ react-native-video”:“ ^ 4.4.5”, “ react-native-video-player”:“ ^ 0.10.0”, “ react-native-webview”:“ ^ 9.2.0”, “反应导航”:“ ^ 4.1.1”, “ react-navigation-drawer”:“ ^ 2.3.4”, “ react-navigation-stack”:“ ^ 2.1.1”, “ react-navigation-tabs”:“ ^ 2.7.0”, “ react-navigation-transitions”:“ ^ 1.0.12”, “ react-redux”:“ ^ 7.2.0”, “ redux”:“ ^ 4.0.5”, “ yup”:“ ^ 0.28.1” }

enter image description here

1 个答案:

答案 0 :(得分:0)

您是否尝试过先安装Pod?

首先进入ios目录

cd ios/ 

然后

pod install

然后再次尝试重建项目并在模拟器中启动它。