首页 文章

React Native包冲突:native-base x react-native-firebase

提问于
浏览
0

今天我使用“react-native-firebase”和“native-base”软件包创建了一个(空的)Android应用程序 . 它在调试模式下工作,但在发布模式下发生崩溃 .

重现问题的步骤:

  • 创建一个新应用
react-native init BaseTest

cd BaseTest
  • 安装“native-base”
npm install native-base --save

react-native link
  • 安装“react-native-firebase”
https://rnfirebase.io/docs/v3.1.*/installation/initial-setup

https://rnfirebase.io/docs/v3.1.*/installation/android
  • 生成签名APK
https://facebook.github.io/react-native/docs/signed-apk-android.html
  • 构建发布并安装
cd android

gradlew assembleRelease

adb install app-release.apk

我找不到错误 . 有没有人有任何想法?
enter image description here

1 回答

  • 0

    嗨,我得到了同样的问题,它真的很让我头疼,但我设法解决了它 . 所以不要跑步

    react-native link run react-native link **native-base**.

    我希望这有帮助 . 快乐编码:)

相关问题