'React-native is not updating changes in android
When i try to run on android the latest code is not updating. However, i can see the changes on IOS device.
I tried reseting the cache react-native start --reset-cache, i reinstalled watchman.But nothing helps me. Could anyone figure it out?
Solution 1:[1]
Make sure React Native Server is running. If it is not running than do following
steps :
1) go to project path : cd '/home/himanshu/ReactNative_CLI/DemoApp'
2) Execute this command to start server: "react-native start"
3) if project not running : "react-native run-android"
4) Save file on your editor and you can see the changes on your device / emulator:
Note: make sure you have enabled reload on device / emulator :
- To enable reload on emulator: press "ctrl+M / Cmd + M / R,R(Press R Twise)"
- To enable reload on real device : Shake your phone : it will show popup to reload.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
