react-native-modals icon indicating copy to clipboard operation
react-native-modals copied to clipboard

Fix #86: Accept both numbers and strings as PropTypes for width and height

Open bausa opened this issue 8 years ago • 2 comments

Fix #86

Accept both numbers and strings as PropTypes for width and height

bausa avatar Nov 29 '17 22:11 bausa

I would like to use a "auto" width et height, on PopupDialog component and it works fine. But prop types are number and it generates a type error.

<PopupDialog> width={'auto'} height={'auto'} ... </PopupDialog>

grean avatar Sep 29 '18 08:09 grean

@grean Temporarily, you can use null

jacklam718 avatar Sep 29 '18 12:09 jacklam718