1.android /app/build.gradle

project.ext.react = [
    entryFile: "index.android.js"
]

2.android/app/src/main/java/com/项目名/MainApplication.java

@Override
 protected String getJSMainModuleName() {
   return "index.android";
 }

ios

ios/项目名/AppDelegate.m

jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];

相关文章:

  • 2021-09-24
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
猜你喜欢
  • 2021-11-22
  • 2022-02-10
  • 2022-12-23
  • 2021-07-05
相关资源
相似解决方案