Unable to use Live Reload / Hot Reload on device

Everything is fine when I develop on a simulator, but now I am in a phase where my application is almost finished, but I need to change some visual details on a real device. For this reason, I would like to have the same option as when testing on the simulator: Live reload or Hot reload.

Here is a popup when I shake the device:

enter image description here

As you can see, I have no options: Enable Live Reload or Enable Hot Reload. Also, if I make changes to any file and only click "Restart", the change does not occur on the device.

My phone and my computer use the same Wi-Fi networks - checked several times

AppDelegate.m. React Native 0.42.0 , : jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];

enter image description here

- , .

, cli @Kamil Sarna :

npm install -g ios-deploy
# Run on a connected device, e.g. Max iPhone:
react-native run-ios --device "Max iPhone"

, ( ). , : npm start -- reset-cache

, , . : enter image description here

, , . - ​​ ?

React Native - 0.42.0 OS - macOS Sierra - iPhone 5S

+4

Source: https://habr.com/ru/post/1671861/


All Articles