Add width/height proptypes

This commit is contained in:
Minsuk Kang
2017-01-05 23:47:38 -08:00
parent c3a736b1b9
commit cf974b64f8
+3 -1
View File
@@ -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