sohobloo / react-native-modal-dropdown

A react-native dropdown/picker/selector component for both Android & iOS.
MIT License
1.19k stars 478 forks source link

Update ModalDropdown.js #241

Open noumansakhawat-dev opened 4 years ago

noumansakhawat-dev commented 4 years ago

The top value is not valid value which is return is NAN. Error: Invariant Violation: [757,"RCTView",91,{"position":"absolute","height":"auto","borderWidth":1,"borderColor":4291022286,"borderRadius":2,"backgroundColor":4294967295,"justifyContent":"center","borderTopWidth":0,"width":372.6,"marginTop":17.92,"shadowColor":4278190080,"shadowOffset":{"width":0,"height":2},"shadowOpacity":0.25,"shadowRadius":3.84,"elevation":5,"top":"<>","left":33}] is not usable as a native method argument

makarangeom commented 4 years ago

I got this issue too

I'm try to install these version

https://gyazo.com/bb5be5715bc81cd25d8d20557d4de434

EnkeChan commented 4 years ago

This error occued when you define the dropDown's height style property and the value is not numeric. You can located the error at .../node_modules/react-native-modal-dropdown/components/ModalDropdown.js line 264.

To resolve this problem, just given a numeric value to the dropDown Component.

My English is so weak. Wish you can understand.hah