加载bundle



  • React Native 加载jsbundle怎么加载,百度出来的那些方法都不对,比如:
    mReactRootView = new ReactRootView(this);
    mReactInstanceManager = ReactInstanceManager.builder()
    .setApplication(getApplication())
    .setBundleAssetName("index.android.bundle")
    .setJSMainModuleName("index.android")
    .addPackage(new MainReactPackage())
    .setUseDeveloperSupport(true)
    .setInitialLifecycleState(LifecycleState.RESUMED)
    .build();
    mReactRootView.startReactApplication(mReactInstanceManager, "rntest", null);

        setContentView(mReactRootView);
    

    网上都是这种方法,可是我试了都不对,求大神指点



  • com.facebook.react.uimanager.IllegalViewOperationException: No ViewManager defined for class RCTRawText
    一直报这个错


登录后回复