【问题标题】:React Native Navigation installation issue with React Native v0.51React Native v0.51 的 React Native Navigation 安装问题
【发布时间】:2017-12-09 10:19:59
【问题描述】:

我在使用 React Native v0.51 安装 React Native Navigation 时遇到问题。我看到对 index.ios 和 index.android 文件进行了更改,只支持一个 index.js 文件。我已经在 AppDelegate.m 中进行了相应的更改,但它仍然不起作用。

AppDelegate.m

App boot up stuck in 4/478

【问题讨论】:

    标签: react-native react-native-navigation


    【解决方案1】:

    与您在 AppDelegate.m 文件中所做的更改相同,我的工作正常。但是,我仍然无法让 android 运行。

    在更改我的AppDelegate.m 文件时,xcode 无法找到RCTBundleURLProvider.h,所以我不得不在Product > Schema > Manage Schema 下重新链接React

    对于 android:在 MainApplication.javaMainApplication 类中添加以下方法对我有用。

    @Override
    public String getJSMainModuleName() {
        return "index";
    }
    

    【讨论】:

      猜你喜欢
      • 2022-12-22
      • 2020-07-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-03-21
      • 1970-01-01
      • 1970-01-01
      • 2019-10-16
      相关资源
      最近更新 更多