關於React Native 我使用的開發環境時webStrom 鏈接就不給了 自己搜吧
添加插件 就可以進行開發了
插件地址:https://github.com/virtoolswebplayer/ReactNative-LiveTemplate
ReactNative的代碼模板,包括:
- 組件名稱
- Api 名稱
- 所有StyleSheets屬性
- 調用ReactNative組件時, 首先 按下 command + J , 然後輸入屬性名的 首字母 如輸入onP 自動提示 onPress, onPressIn, onPressOut, ....
下載方法:
首先大家可以把該項目下載或者如下命令clone下來:
1
|
git
clone https: //github.com/virtoolswebplayer/ReactNative-LiveTemplate |
安裝方法一(Windows和Mac都支持):
1
|
file
-> import settings -> ReactNative.jar |
安裝方法二(該方法只是針對Mac):
將ReactNative.xml複製到 ~/Library/Preferences/WebStorm11/templates 重啓 WebStrom