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

问题描述 投票:0回答:1

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

重现问题的步骤:

  1. 创建一个新的应用程序 react-native init BaseTest cd BaseTest
  2. 安装“原生基地” npm install native-base --save react-native link
  3. 安装“react-native-firebase” https://rnfirebase.io/docs/v3.1.*/installation/initial-setup https://rnfirebase.io/docs/v3.1.*/installation/android
  4. 生成签名APK https://facebook.github.io/react-native/docs/signed-apk-android.html
  5. 构建版本并安装 cd android gradlew assembleRelease adb install app-release.apk

我找不到错误。有没有人有任何想法?

android node.js firebase react-native native-base
1个回答
0
投票

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

react-native link运行react-native link **native-base**.

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

© www.soinside.com 2019 - 2024. All rights reserved.