Replace PropTypes from react with form prop-types package (#217)

This commit is contained in:
Tim Gibadullin 2017-06-30 12:42:10 +03:00 committed by Alexey
parent 4eba536639
commit 9a9d5aaf02
4 changed files with 10 additions and 4 deletions

View File

@ -20,5 +20,8 @@
"bugs": {
"url": "https://github.com/react-native-fellowship/react-native-blur/issues"
},
"homepage": "https://github.com/react-native-fellowship/react-native-blur"
"homepage": "https://github.com/react-native-fellowship/react-native-blur",
"dependencies": {
"prop-types": "^15.5.10"
}
}

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, requireNativeComponent, DeviceEventEmitter, ViewPropTypes } from 'react-native';
const OVERLAY_COLORS = {

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { View, requireNativeComponent, ViewPropTypes } from 'react-native';
class BlurView extends Component {

View File

@ -1,4 +1,5 @@
import React, { Component, PropTypes } from 'react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { requireNativeComponent } from 'react-native';
class VibrancyView extends Component {