Merge branch 'iRoachie-viewPropTypes'

This commit is contained in:
Dylan Vann 2017-11-12 14:22:10 -05:00
commit 17a5a7e96e
2 changed files with 5 additions and 2 deletions

View File

@ -4,8 +4,8 @@ import {
Image,
NativeModules,
requireNativeComponent,
View,
} from 'react-native'
import ViewPropTypes from './utils/ViewPropTypes'
const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource')
@ -87,7 +87,7 @@ const FastImageSourcePropType = PropTypes.shape({
})
FastImage.propTypes = {
...View.propTypes,
...ViewPropTypes,
source: PropTypes.oneOfType([FastImageSourcePropType, PropTypes.number]),
onLoadStart: PropTypes.func,
onProgress: PropTypes.func,

3
utils/ViewPropTypes.js Normal file
View File

@ -0,0 +1,3 @@
import { ViewPropTypes as RNViewPropTypes, View } from 'react-native'
export default RNViewPropTypes || View.propTypes