sohobloo / react-native-modal-dropdown

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

select method not accessible via ref anymore #187

Open calcazar opened 6 years ago

calcazar commented 6 years ago

I started using this library with the latest version of RN and kept seeing an issue where I would ref the component and call the select method but I would get an error stating the select doesn't exist.

I fixed this by going in to the the source and binding this.select to this in the constructor.

gavin-gmlab commented 6 years ago

Same problem. Show and hide also missing

SSTPIERRE2 commented 5 years ago

@sohobloo issue persists, going to have to fork or drop this package due to this select issue. Also not being able to just pass the dropdown a value is limiting.