From 585027c460d0df2be436c953a2810c637436693e Mon Sep 17 00:00:00 2001 From: Daichi Sakai Date: Sat, 11 Nov 2017 19:07:28 +0900 Subject: [PATCH] Change import statement of `PropTypes` for React 15.5+ see: https://reactjs.org/blog/2017/04/07/react-v15.5.0.html#migrating-from-reactproptypes --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +});