lawnstarter / react-native-picker-select

🔽 A Picker component for React Native which emulates the native <select> interfaces for iOS and Android
https://npmjs.com/package/react-native-picker-select
MIT License
1.73k stars 490 forks source link

how to dim the background screen when the picker shows #577

Open saaspeter opened 1 month ago

saaspeter commented 1 month ago

Hi: I want to know how to dim the background screen when the picker shows, below is the details, thanks!

Is your feature request related to a problem? Please describe.
Yes, It seems no built-in way to customize the background screen opacity when the react-native-picker-select modal is open on iOS. This leads to a lack of visual distinction between the active picker and the underlying app content, potentially hindering user experience and focus. (e.g: most date-picker will dim the background screen to highlight the picker)

Describe the solution you'd like
By default, when the picker shows the backend screen should become dim, like other date-pickers. However maybe the user can turnoff this effect by some a property.

Describe alternatives you've considered
I am not sure whether it can be achieved in "modalProps"? maybe some property like: Opacity

Additional details
Add any other details or screenshots about the feature request here.