ReferenceError: Can't find variable: __fbBatchedBridge

后端 未结 8 2019
花落未央
花落未央 2021-02-05 00:55

Using just the default code from react-native init AwesomeProject, when I run the app I get the \'ReferenceError: Can\'t find variable: __fbBatchedBridge (line 1 in

8条回答
  •  佛祖请我去吃肉
    2021-02-05 01:25

    Also If you have submitted your app for the iTunes store, also make sure that your jsCodeLocation is back to the localhost, as shown bellow:

      jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
    
      /**
       * OPTION 2
       * Load from pre-bundled file on disk. The static bundle is automatically
       * generated by "Bundle React Native code and images" build step.
       */
    
       //jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
    

提交回复
热议问题