mirror of
https://github.com/zoriya/react-native-svg.git
synced 2025-12-21 06:15:15 +00:00
Add uri loading
This commit is contained in:
@@ -16,7 +16,12 @@ class Image extends Shape {
|
||||
y: numberProp,
|
||||
width: numberProp.isRequired,
|
||||
height: numberProp.isRequired,
|
||||
href: PropTypes.number.isRequired,
|
||||
href: PropTypes.oneOfType([
|
||||
PropTypes.number,
|
||||
PropTypes.shape({
|
||||
uri: PropTypes.string.isRequired
|
||||
})
|
||||
]).isRequired,
|
||||
preserveAspectRatio: PropTypes.string
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user