【问题标题】:How to transfer EXPO project to React Native project?如何将 EXPO 项目转移到 React Native 项目?
【发布时间】:2018-12-23 21:37:30
【问题描述】:

我使用 Expo 工具构建了一个应用程序 .. 但现在我在没有 expo 的情况下要迁移到 react native .. 我试图在 react native 中创建一个新项目,然后传输我编写的代码并安装我的组件在我的应用中使用过。

具有 Expo 的应用程序按预期工作,并在没有 Expo 的情况下运行本机反应,但意外并崩溃。

【问题讨论】:

    标签: react-native react-native-android react-native-ios expo


    【解决方案1】:

    你不需要像那样转移代码,expo 让我们可以将代码从 expo 分离到没有 expo react-native 项目。

    请参考此链接expokit eject

    如果您想在项目中使用 expo API,那么您可以使用 detach-with-expokit 分离您的应用程序。 使用expo eject 添加ExpoKit(选择“ExpoKit”选项)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-05
      • 2019-09-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-16
      相关资源
      最近更新 更多