Nathim Try
Nathim Try

Reputation: 77

How to fix react-native-date-picker in iOS?

Who can explain this to me? I am using the react-native-date-picker but when I run the app with different versions of iOS devices they show a different date picker style. Thank you so much.

enter image description here

Upvotes: 1

Views: 1467

Answers (1)

iUrii
iUrii

Reputation: 13838

Standard React Native UI components based on a target platform ones and they can be different on different platforms or different platform versions. Simply saying React Native provides you a bridge to manage a current native UI control.

iOS has UIDatePicker native control that implements the inputting of date and time values and it has been changed several times (https://www.andyibanez.com/posts/new-uidatepicker-ios14/). So if you want to have the same appearance of the date picker you should create your own pure RN component or use any open source one.

Upvotes: 1

Related Questions