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.

Issue

Looks like iOS 14 introduced new design for Calendar

Expected Behaviour

Looks like this component needs to be updated to handle these changes for iOS 14

Environment

  1. react-native -v: 0.62.2
  2. node -v: v10.18.1
  3. npm -v: 6.13.4
  4. yarn --version: 1.22.4
  5. target platform: iOS (14)
  6. operating system: macOS

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:43
  • Comments:33

github_iconTop GitHub Comments

106reactions
undeaDDcommented, Sep 14, 2020

one solution for this may be to override the preferedStyle of any UIDatePicker in the iOS native Workspace:

if (@available(iOS 14, *)) {
  UIDatePicker *picker = [UIDatePicker appearance];
  picker.preferredDatePickerStyle = UIDatePickerStyleWheels;
}

But there is one catch 👎 The DatePickerWheel is smaller in iOS14 and wont fill the Libraries Modal sadly Maybe someone else here has any Idea for that ^^

If you are fine with a left aligned Wheel though just put the code from above in your AppDelegate -> didFinishLaunchingWithOptions function

IMAGE 2020-09-14 12:52:34

90reactions
undeaDDcommented, Sep 14, 2020

okay i just fixed the misalignment with some customStyles …

<DatePicker
    customStyles={{
      datePicker: {
        backgroundColor: '#d1d3d8',
        justifyContent:'center'
      }
    }}
...
/>

Result: iOS 14 ( compiled with XCode 12 ) IMAGE 2020-09-14 13:53:47

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 14 is available today - Apple
iOS 14 reimagines the iPhone experience, delivering a major update to the Home Screen with beautifully redesigned widgets and the App ...
Read more >
iOS 14 - Wikipedia
iOS 14 is the fourteenth major release of the iOS mobile operating system developed by Apple Inc. for their iPhone and iPod Touch...
Read more >
iOS 14: Everything you need to know - MacRumors
iOS 14 was one of Apple's biggest iOS updates to date, introducing Home screen design changes, major new features, updates for existing apps, ......
Read more >
iOS 14 | Features, Updates, Mask Unlock - AppleInsider
iOS 14 adds widgets to the Home screen, an all new App Library, and App Clips. The latest beta even lets you unlock...
Read more >
Apple iOS 14: New iPhone features explored - Pocket-lint
(Pocket-lint) - Every year, Apple introduces a new major software update for the iPhone. For 2020, that update is called iOS 14.
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