【问题标题】:How to remove react-native-firebase from iOS while keeping it in Android?如何从 iOS 中删除 react-native-firebase,同时将其保留在 Android 中?
【发布时间】:2019-02-25 11:00:19
【问题描述】:

我在我的 react native 项目中使用https://rnfirebase.io/docs/v5.x.x/。 我只想将它用于 Android 而不是 iOS。但是 Xcode 无法构建,说它需要 PODS 内的 firebase。

我该怎么办? 有没有我应该删除/更新的文件?

【问题讨论】:

  • 做手动链接。
  • 怎么样?有链接吗?
  • 谢谢@SanyamJain。

标签: ios react-native react-native-ios react-native-firebase


【解决方案1】:

这些是我用来从 iOS 取消链接 npm 模块并将它们保留在 Android 中的命令:

react-native unlink react-native-gesture-handler --platforms ios
react-native unlink react-native-reanimated --platforms ios
react-native unlink react-native-vector-icons --platforms ios

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多