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

Is it possible to display an activity indicator while the Filter function is running? #151

Open aayushsin opened 3 years ago

aayushsin commented 3 years ago

I am doing some client side rendering and filtering 500 items. It takes 1-2 seconds to filter the array. Is it possible to show an activity indicator while the function is running? I cannot use hooks here to display the Spinner as state changes after the function is finished.

peacechen commented 3 years ago

This currently isn't supported, but would be a great enhancement. Would you submit a PR to add this feature?