ReferenceError: Can't find variable: __fbBatchedBridge

后端 未结 8 2003
花落未央
花落未央 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"];
    
    0 讨论(0)
  • 2021-02-05 01:30

    I generally see this when the packager hasn't started. Ensure that is running by running react-native start

    0 讨论(0)
提交回复
热议问题