Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need a view behind picker to block user action #327

Open
onsensei opened this issue Jul 8, 2018 · 3 comments
Open

Need a view behind picker to block user action #327

onsensei opened this issue Jul 8, 2018 · 3 comments

Comments

@onsensei
Copy link

onsensei commented Jul 8, 2018

Should have a view behind picker to block user action, because in most case user should finish the task in picker before do other things.

So, this module should have props to set

  • viewPartitionBackgroundColor (I call this view as ViewPartition)
  • onPressViewPartition to tell app when user tap on it, with this developer can implement something like in onPickerCancel or do other things
@beausmith
Copy link

beausmith commented Jul 31, 2018

Agreed. This feature request seems like a commonly desired feature.

On iOS, I can display a modal which appears under the picker. However on Android, the picker displays below the modal, thus the whole app becomes unusable as the modal is blocking all clicks.

Related: #162, #142

@onsensei
Copy link
Author

onsensei commented Aug 5, 2018

I also use this picker with my modal.

Solution to make picker appear above modal on both iOS & android is call RNPicker.show(); inside onShow callback of modal.

@raginisahu
Copy link

could you please give me a example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants