一定程度上解决React-Native开发过程中,WebStorm语法高亮的问题

Cannot resolve symbol ‘Component’ & Cannot resolve symbol‘PropTypes’

1.解决 Cannot resolve symbol 'Component' 

安装依赖:npm install @types/react --save
调用方法:import React, { Component } from 'react'

2.解决 Cannot resolve symbol 'PropTypes'

安装依赖:npm install prop-types --save
调用方法:import PropTypes from 'prop-types'

https://www.npmjs.com/package/@types/react-native

npm install –save @types/react-native