peacechen / react-native-modal-selector

A cross-platform (iOS / Android), selector/picker component for React Native that is highly customizable and supports sections.
MIT License
369 stars 129 forks source link

Add a close() type to the ModalSelector class #176

Closed jurajzsiga closed 2 years ago

jurajzsiga commented 2 years ago

open and getSelectedItem types are provided in the ModalSelector class, but a type for close is missing.

Not a huge issue of course as I am extending the type in my custom component (although I am not sure what the args are) 🙂 but it would be nice to have it out of the box for TS support.

mikaello commented 2 years ago

Thanks for the suggestion. Added in react-native-modal-selector@2.1.1.