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
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"];
I generally see this when the packager hasn't started. Ensure that is running by running react-native start