expo: Bug with datetimepicker in ios 14 (local env)

πŸ› Bug Report

Summary of Issue

When I run in a local datetimepicker looks as wheels - Screenshot 2020-11-25 at 15 20 58

But when I compile (expo build:ios) it looks with new ios 14 styles - Screenshot 2020-11-25 at 15 21 15

Environment

Expo Workflow: managed Platform: iPhone 12 Pro Max simulator iOS 14.2

β€œexpo”: β€œ^39.0.0”, β€œ@react-native-community/datetimepicker”: β€œ3.0.0”,

Example code:

 <DateTimePicker
    testID="dateTimePicker"
    value={date}
    is24Hour
    mode="time"
    locale="en_GB"
    display="default"
    onChange={console.log}
/>

I have 2 questions.

  1. How set up a local environment with ios 14 views for datetimepicker?
  2. How to turn on wheels view for datetimepicker in ios 14?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 8
  • Comments: 15 (8 by maintainers)

Most upvoted comments

run EXPO_BETA=1 expo client:install:ios to install the beta version of expo client that is built using xcode 12, so you can test this locally without doing a standalone app build.

Screen Recording 2020-12-02 at 10 44 12 AM

also note that you need to specify a width - β€˜100%’ should work for most cases.

Is there a solution for this? Encountering the same issue, and changing to β€œspinner” didn’t solve it.

@hehex9 What your solutions?

@NozhenkoD set display to spinner instead of default should resolve this