question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3.0.8 - Display property appears to be broken ?

See original GitHub issue

Bug report

Summary

I am trying to make my users who have iOS 14.2 have the same date time picking experience as before. To this end I was hoping to add the display property to my date time picker and set it to “spinner”

Display property appears to be broken - All date time pickers look the same in iOS 13.3 (All wheels) and also in iOS 14.2 (All pop over Calendars). However no matter what display property I choose, all date time pickers look the same.

Downgrading to 3.0.2 (I picked an earlier version at random) fixes my issue.

Reproducible sample code

import RNDateTimePicker from '@react-native-community/datetimepicker';
import * as React from 'react';
import { View } from 'react-native';
export class ExampleComponent extends React.Component<any, any> {
    public render() {
        return (
            <View style={{ paddingTop: 50 }} >

                <RNDateTimePicker display='compact' value={new Date()} style={{ height: 100, width: 400 }} />
                <RNDateTimePicker display='inline' value={new Date()} style={{ height: 100, width: 400 }} />
                <RNDateTimePicker display='spinner' value={new Date()} style={{ height: 100, width: 400 }} />
                <RNDateTimePicker display='default' value={new Date()} style={{ height: 100, width: 400 }} />
            </View >
        );
    }
}

Steps to reproduce

  1. Run the above code in a react native app on iOS 13.3 or 14.2 (or presumably any other version?)

Describe what you expected to happen:

  1. Some of the datetime pickers should look different in iOS 14.2

Environment info

System: OS: macOS 11.0.1 CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz Memory: 48.92 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 14.8.0 - /usr/local/bin/node Yarn: Not Found npm: 6.14.7 - ~/source/appdrift/dreamweavermobile/node_modules/.bin/npm Watchman: Not Found Managers: CocoaPods: 1.9.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 14.2, DriverKit 20.0, macOS 11.0, tvOS 14.2, watchOS 7.1 Android SDK: API Levels: 28 Build Tools: 28.0.3 System Images: android-28 | Google APIs Intel x86 Atom_64 Android NDK: Not Found IDEs: Android Studio: Not Found Xcode: 12.2/12B45b - /usr/bin/xcodebuild Languages: Java: 1.8.0_265 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 npmGlobalPackages: *react-native*: Not Found

datetimepicker version: 3.0.8

iOS / Android version: iOS13.3 , iOS 14.2

I don’t have any androids to hand to test, sorry.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:9
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mmazzarolocommented, Jan 26, 2021

Just FYI to the people who are experiencing this issue: in react-native-modal-datetime-picker, which uses react-native-datetimepicker under the hood, we had several reports of issues like this. Each one of these cases was solved by cleaning up node_modules and resetting the cache: https://github.com/mmazzarolo/react-native-modal-datetime-picker#the-picker-is-not-showing-the-right-layout-on-ios--14 – so make sure to try to do that before bumping the issue 👍

Also, as far as I know, in react-native-modal-datetime-picker the display proberty of react-native-datetimepicker is being overridden without issues (both in iOS pre/post 14).

1reaction
brandonballardcommented, Jan 15, 2021

Still an issue on version 3.0.9.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Transitions on the CSS display property - Stack Overflow
At the moment, it appears that CSS 3 transitions don't apply to the 'display' property, i.e., you can't do any sort of transition...
Read more >
CSS display property - W3Schools
Property Values ; block, Displays an element as a block element (like <p>). It starts on a new line, and takes up the...
Read more >
Spring Data REST Changelog
#356 - DATAREST-1392 - repository.resources.adoc HATEOAS broken link. ... DATAREST-1383 - Backend read-only properties overridden for PATCH requests.
Read more >
Tailwind CSS v3.0
Arbitrary properties — now Tailwind supports CSS properties we've never even heard of. Play CDN — the new Just-in-Time engine squeezed into ...
Read more >
Datatable – Lightning Web Component for Flow Screens
This is similar to what Salesforce displays for List Views. Other Formatting Options. Top. Configure Columns. The Configure Columns button runs ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found