I'm trying to enable Live Reload mode, but there is no such item in Dev Menu:
You have this problem is mainly because your device and your development machine is not in the same LAN. check if it is. Make sure your computer and your device connected in the save LAN, everything will be ok.
After all ur devices connected to the same LAN. And if u are using Xcode.
npm start -- reset-cache
Then everything will be OK.
You need to edit the source for jsCodeLocation
from your AppDelegate.
The main problem that the
jsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
is looking for localhost
by default, in simulator it will work as simulator and pc are on the same machine, but for device localhost
will be different so to make it work, you need to change that line to
jsCodeLocation = [NSURL URLWithString:@"http://192.168.1.16:8081/index.ios.bundle?platform=ios&dev=true&minify=false&hot=true"];
here 192.168.1.16
change it to your PC local IP address
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With