iOS 14 UI discussion #601
Replies: 15 comments
-
Hey @scott-massey welcome back :D This looks exactly like what I was planning to do after #558 gets merged. My idea was to show the "new" picker for the I'm curious to see what changes you're making... IIRC in my case #558 + changing the display mode was enough to achieve a look like the one you're using in your picker 🤔 |
Beta Was this translation helpful? Give feedback.
-
I'm dumb. I didn't notice you remove the confirm/cancel buttons 😬 Let's talk about it. From my perspective, the problem with it, is that it would have a different API from Android — and I think it's pretty important to maintain the same API between the two platforms (given it's one of the main use cases) |
Beta Was this translation helpful? Give feedback.
-
If you're worried about the buttons missing, we can implement buttons that look like this instead. That way the modal looks more friendly in the center of the screen. The one frustrating thing with the buttons though is that there is no built-in localization support like there is on android, and we can't implement that without forcing devs to install |
Beta Was this translation helpful? Give feedback.
-
Additionally, I had to do a decent amount of work to get the modal to show up in the center of the screen, as well as bump it up when the keyboard opens. Nothing crazy but we'd want to implement that code as well. |
Beta Was this translation helpful? Give feedback.
-
Looking good. Do you know if there's any native API that is using this "look" for a picker? Or any iOS setting that I can tap on to show a modal/dialog with buttons? Just to understand what the official iOS guidelines are promoting.
Isn't this the same problem we already have with the current version?
Yeah sorry, I didn't see you removed the confirm/cancel button. By going down this path there's definitely some UI work that needs to be done, I agree 👍 |
Beta Was this translation helpful? Give feedback.
-
I just looked up "ios 14 date picker" on google images. Most didn't have any buttons, but a couple had smaller buttons. I recreated one of the screenshots I saw pretty easily, see the attached screenshot. Would love your thoughts.
Makes lots of sense, got it. |
Beta Was this translation helpful? Give feedback.
-
Thanks. I'll look for native modals/dialog for examples/inspirations 👍 |
Beta Was this translation helpful? Give feedback.
-
How would you deal with the time-picker? |
Beta Was this translation helpful? Give feedback.
-
I haven't needed to for my project, but it would probably make sense to keep the time picker as a spinner like before |
Beta Was this translation helpful? Give feedback.
-
Hey @scott-massey. I investigated a bit, the iOS guidelines aren't still saying anything about what kind of button/modals to use. So, for the time being, I'm still planning to use the same components we're currently usings since they work well with all use cases. |
Beta Was this translation helpful? Give feedback.
-
Hi @scott-massey! I'm currently working on something pretty similar on what you implemented. I was considering implementing without this library, but after |
Beta Was this translation helpful? Give feedback.
-
Hey @stearruda , just FYI, we now support all picker styles: #558 . |
Beta Was this translation helpful? Give feedback.
-
Tks for the info @mmazzarolo! BTW In the end, I've implemented the Date Picker with I was having some foundation on how to implement from a previous code of my job (in the deprecated RN the Date Picker) which had an |
Beta Was this translation helpful? Give feedback.
-
Hi @stearruda! Apologies on not responding, I totally missed this. I ended up using the React Native modal styles to hack together a version that fit with what I needed. Let me know if you still want more info. |
Beta Was this translation helpful? Give feedback.
-
No worries @scott-massey ! |
Beta Was this translation helpful? Give feedback.
-
Hi!
While working on my project, I worked on a way to get the date picker to show up like the new iOS 14 native date picker. A GIF is attached to show what it looks like.
It removes the header text, as well as the cancel and confirm buttons. Instead of changing with the
onConfirm
, I leverage@react-native-community/datetimepicker
'sonChange
prop. And instead of using a cancel button, the user can just tap outside the modal to have the window close.If you're interested, would love to work with you to implement this version into your library. Let me know what you need from me.
Best,
Scott
Beta Was this translation helpful? Give feedback.
All reactions