diff --git a/package.json b/package.json index 8f1a421..cc9c21a 100644 --- a/package.json +++ b/package.json @@ -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" + } } diff --git a/src/BlurView.android.js b/src/BlurView.android.js index 8c6cbd5..a24b0c9 100644 --- a/src/BlurView.android.js +++ b/src/BlurView.android.js @@ -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 = { diff --git a/src/BlurView.ios.js b/src/BlurView.ios.js index f726d9f..bb653f5 100644 --- a/src/BlurView.ios.js +++ b/src/BlurView.ios.js @@ -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 { diff --git a/src/VibrancyView.ios.js b/src/VibrancyView.ios.js index a4c0474..652d773 100644 --- a/src/VibrancyView.ios.js +++ b/src/VibrancyView.ios.js @@ -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 {