- star 数
- 811
- watcher 数
- 30
- fork 数
- 189
- issue 数
- 6
- 最終更新
- 2018/09/26
[2016-11-09]
本插件可以配合 react-native.d.ts 以及 react.d.ts 使用
webstorm -> language & frameworks -> javascript -> Libraries
点击【download】按钮,找到 react.d.ts 和 react-native.d.ts 下载,大功告成!
[2015-12-25]
新增组件属性,调用ReactNative组件时,首先按下 command + J,然后输入属性名的 首字母 如输入onP 自动提示 onPress, onPressIn, onPressOut, .....
ReactNative的代码模板,包括:
file -> import settings -> ReactNative.jar
Mac下安装
提示:如果没有
templates文件夹,你可以手动创建一个
将ReactNative.xml复制到 ~/Library/Preferences/WebStorm11/templates
将ReactNative.xml复制到 ~/Library/Preferences/WebStorm2016.2/templates
将ReactNative.xml复制到 ~/Library/Preferences/WebStorm2017.1/templates
将ReactNative.xml复制到 ~/Library/Preferences/WebStorm2017.2/templates
重启 WebStorm
直接输入 组件 或 Api 名称的首字母,比如想要 View,只要输入 V 自动提示代码里就会看到 View
首先按下 command + J,然后输入属性名的 首字母
如:输入 f,会自动提示 fontSize, fontFamily, fontStyle...等等