diff --git a/index.js b/index.js index ecbc679..80185e2 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -import { PropTypes } from 'react'; +import PropTypes from 'prop-types'; import { requireNativeComponent, View } from 'react-native'; module.exports = requireNativeComponent('RNTBgImage', { @@ -9,4 +9,4 @@ module.exports = requireNativeComponent('RNTBgImage', { drawable: PropTypes.string, ...View.propTypes // include the default view properties } -}); \ No newline at end of file +});