Merge pull request #186 from gitim/replace-react-PropTypes-with-prop-types
Replace PropTypes from react with form prop-types package
This commit is contained in:
commit
811c94d2f3
|
@ -1,6 +1,6 @@
|
|||
// @flow
|
||||
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { processColor, requireNativeComponent, PointPropType, StyleSheet, View, ViewPropTypes } from 'react-native';
|
||||
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
* @providesModule LinearGradient
|
||||
* @flow
|
||||
*/
|
||||
import React, { Component, PropTypes } from 'react';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { processColor, requireNativeComponent, PointPropType, View, ViewPropTypes } from 'react-native';
|
||||
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');
|
||||
|
||||
|
|
|
@ -24,5 +24,8 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"jest-cli": "0.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"prop-types": "^15.5.10"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue