React-Native Module HMRClient is not a registered callable module (calling enable)

后端 未结 7 1179
感情败类
感情败类 2020-12-30 02:56

I have set my IP and made sure it\'s right but when I executereact-native run-android

7条回答
  •  梦谈多话
    2020-12-30 03:13

    This can happen when you have hot reloading enabled but you are in production mode. To use hot reloading, make sure you have __DEV__ set to true.

    To check or change this, in a console type adb shell input keyevent 82, go to Dev Settings, and make sure JS Dev Mode is checked.

    If you have remote JS debugging enabled, then you might also see a line in the console that looks like this:

    Running application "yourapp" with appParams: {"rootTag":1}. __DEV__ === false, development-level warning are OFF, performance optimizations are ON

    If that's the case, then this could be the cause of your problem.

提交回复
热议问题