安装请参考:http://www.cnblogs.com/wjx0912/p/5662457.html

 

webstorm在2016.10.20的版本才正式增加react native的调试支持,所以webstorm一定要更新到最新版本

https://blog.jetbrains.com/webstorm/2016/10/webstorm-2016-3-eap-163-6512/

https://blog.jetbrains.com/webstorm/2016/11/webstorm-2016-3/

 

webstorm打开工程后

(1)菜单File->Default Settings,然后选Languages&Frameworks -> JavaScript ,右边选React JSX

(2)菜单Run -> Edit Configurations,然后点加号,找到react native,后面都默认

(3)render()函数里面加断点测试,运行调试,在android模拟器中点menu键,出来菜单选择debug

 

智能提示

需要安装插件:https://github.com/virtoolswebplayer/ReactNative-LiveTemplate

 

相关文章:

  • 2021-07-27
  • 2021-08-28
  • 2021-09-09
  • 2022-12-23
  • 2022-01-02
  • 2021-05-21
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2021-07-11
  • 2022-01-13
  • 2021-11-26
  • 2022-12-23
  • 2022-01-21
  • 2021-09-30
  • 2021-12-08
相关资源
相似解决方案