Merge branch 'iRoachie-viewPropTypes'
This commit is contained in:
commit
17a5a7e96e
|
@ -4,8 +4,8 @@ import {
|
||||||
Image,
|
Image,
|
||||||
NativeModules,
|
NativeModules,
|
||||||
requireNativeComponent,
|
requireNativeComponent,
|
||||||
View,
|
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
|
import ViewPropTypes from './utils/ViewPropTypes'
|
||||||
|
|
||||||
const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource')
|
const resolveAssetSource = require('react-native/Libraries/Image/resolveAssetSource')
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ const FastImageSourcePropType = PropTypes.shape({
|
||||||
})
|
})
|
||||||
|
|
||||||
FastImage.propTypes = {
|
FastImage.propTypes = {
|
||||||
...View.propTypes,
|
...ViewPropTypes,
|
||||||
source: PropTypes.oneOfType([FastImageSourcePropType, PropTypes.number]),
|
source: PropTypes.oneOfType([FastImageSourcePropType, PropTypes.number]),
|
||||||
onLoadStart: PropTypes.func,
|
onLoadStart: PropTypes.func,
|
||||||
onProgress: PropTypes.func,
|
onProgress: PropTypes.func,
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
import { ViewPropTypes as RNViewPropTypes, View } from 'react-native'
|
||||||
|
|
||||||
|
export default RNViewPropTypes || View.propTypes
|
Loading…
Reference in New Issue