-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Picker component is inconsistent between iOS and Android #25866
Comments
The date pickers also have quite different behaviors. At least in this case, they are separate components. |
Thanks for submitting your issue. Can you take another look at your description and make sure the issue template has been filled in its entirety? 👉 Click here if you want to take another look at the Bug Report issue template. |
@react-native-bot updated to include RN version. Not sure what else I need to include |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
I don't know how to implement this, nor do I have time to, but it looks like I'm not the only one with this opinion, so I'd like to hear from someone from the RN team about whether this is something they would accept. If so, I'd recommend someone create a PR in order to get it moving forward. |
hi @dkniffin we need some more information. Could you do a few things: |
@safaiyeh I'm not actually working on any RN projects at this time. If anyone else following this thread wants to take this over for me, that would be awesome! I know this would make development of basic forms a bit easier. Essentially what I'm asking for is for something like https://github.com/lawnstarter/react-native-picker-select to become part of the standard RN library. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
I am confused about the intended usage of the Picker component. As it is now, it is very inconsistent in behavior between iOS and Android.
To illustrate this, I've created a small component:
Here is how it renders on iOS:
and here it is on Android:
Ignoring my atrocious styling here, the point I'm trying to get across is that the picker is very different between the two.
What I'm looking for is an easy way to have a dropdown-like field (similar to select on web), that behaves in a way that feels native to each platform. For Android, that seems to be the case, but for iOS, I would expect that it would render as an empty field, and when the field is clicked, it would open up a keyboard-like dialog prompt with the picker rendered inside it.
For reference, here's what a
select
field renders like in Safari (rendering this page), which is exactly the behavior I'm expecting:For now, my workaround is going to be to use a 3rd party library, but this definitely feels like something that should work out of the box in react-native.
React Native version:
The text was updated successfully, but these errors were encountered: