mirror of
https://github.com/zoriya/react-native-svg.git
synced 2026-06-07 00:42:31 +00:00
Add width/height proptypes
This commit is contained in:
+3
-1
@@ -19,7 +19,9 @@ class Image extends Shape {
|
|||||||
href: PropTypes.oneOfType([
|
href: PropTypes.oneOfType([
|
||||||
PropTypes.number,
|
PropTypes.number,
|
||||||
PropTypes.shape({
|
PropTypes.shape({
|
||||||
uri: PropTypes.string.isRequired
|
uri: PropTypes.string.isRequired,
|
||||||
|
width: PropTypes.number.isRequired,
|
||||||
|
height: PropTypes.number.isRequired
|
||||||
})
|
})
|
||||||
]).isRequired,
|
]).isRequired,
|
||||||
preserveAspectRatio: PropTypes.string
|
preserveAspectRatio: PropTypes.string
|
||||||
|
|||||||
Reference in New Issue
Block a user