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