Skip to content

Commit

Permalink
Change import statement of PropTypes for React 15.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
daisaru11 committed Nov 11, 2017
1 parent 55e3aa3 commit 585027c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -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', {
Expand All @@ -9,4 +9,4 @@ module.exports = requireNativeComponent('RNTBgImage', {
drawable: PropTypes.string,
...View.propTypes // include the default view properties
}
});
});

0 comments on commit 585027c

Please sign in to comment.