1.WebStorm設(shè)置JSX語(yǔ)言,打開(kāi)WebStorm設(shè)置偏好谆膳,將ECMAScript6切換成JSX Harmony 叭爱,點(diǎn)擊Apply,OK即可。
2.設(shè)置.js文件中支持react-native語(yǔ)法高亮
需要下載
react-autosuggest
react-bootstrap
react-bootstrap-daterangepicker
react-bootstrap-table
react-calendar-timeline
react-cropper
react-datagrid
react-datepicker
react-day-picker
react-dnd
react-dropzone
react-fa
下載完成漱病,點(diǎn)擊Apply,OK
3.添加智能提示效果买雾,先到Github下載ReactNative-LiveTemplate,在WebStorm-->File里面引用在Github下載的ReactNative.jar
4.最終效果