How do I use HMR when developing react-native on a device?
Asked Answered
M

2

1

I can launch Hot Module Replacement on the simulator, because I can directly type on the keyboard.

However I do not know how to access these debug options (cmd+ctrl+z or equivalent in windows) on the actual device.

Else if not using HMR, do you rebuild from Xcode? Any other method to reload the app rather than that? It can be slow.

Any help?

Manuelmanuela answered 15/6, 2016 at 15:6 Comment(0)
W
3

You should be able to just "shake" the device to open the debug menu :)

Watanabe answered 15/6, 2016 at 16:5 Comment(1)
Thanks! But that made me make another question, more disturbing. Really do I have to shake a huge iPad? #37840166Manuelmanuela
R
1

Just do cmd+d on mac click Debug JS Remotely after you need to launch Enable Hot Reloading just one time.

Take a look to Exponent

Routine answered 15/6, 2016 at 16:54 Comment(1)
Thanks, but remember I can't cmd+d on the tablet! So I still have to shake it. Exponent however is a great advise!Manuelmanuela

© 2022 - 2024 — McMap. All rights reserved.