Replace PropTypes from react with form prop-types package

This commit is contained in:
Timur Gibadullin 2017-06-29 15:50:59 +03:00
parent 35c6bb4858
commit 416b84a72b
3 changed files with 7 additions and 2 deletions

View File

@ -1,6 +1,7 @@
// @flow
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { processColor, requireNativeComponent, PointPropType, StyleSheet, View } from 'react-native';
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');

View File

@ -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 } from 'react-native';
const deprecatedPropType = require('react-native/Libraries/Utilities/deprecatedPropType.js');

View File

@ -24,5 +24,8 @@
},
"devDependencies": {
"jest-cli": "0.2.1"
},
"dependencies": {
"prop-types": "^15.5.10"
}
}