Merge branch 'iRoachie-viewPropTypes'
This commit is contained in:
commit
17a5a7e96e
|
@ -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,
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
import { ViewPropTypes as RNViewPropTypes, View } from 'react-native'
|
||||
|
||||
export default RNViewPropTypes || View.propTypes
|
Loading…
Reference in New Issue