mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-20 05:55:10 +00:00
add touchableProps and responderProps into propTypes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, {PropTypes} from 'react';
|
||||
import createNativeComponent from '../lib/createNativeComponent';
|
||||
import {numberProp} from '../lib/props';
|
||||
import {numberProp, touchableProps, responderProps} from '../lib/props';
|
||||
import Shape from './Shape';
|
||||
import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource';
|
||||
|
||||
@@ -12,7 +12,9 @@ class Image extends Shape {
|
||||
y: numberProp,
|
||||
width: numberProp,
|
||||
height: numberProp,
|
||||
href: PropTypes.number.isRequired
|
||||
href: PropTypes.number.isRequired,
|
||||
...responderProps,
|
||||
...touchableProps
|
||||
//preserveAspectRatio: PropTypes.string
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user