React-native-modal-datetime-picker: Cannot read property 'getColorScheme' of undefined error in iOS emulator

Created on 10 Aug 2020  Β·  12Comments  Β·  Source: mmazzarolo/react-native-modal-datetime-picker

Environment

System:
OS: macOS 10.15.6
CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
Memory: 332.75 MB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 12.5.0 - /usr/local/bin/node
Yarn: 1.22.4 - node_modules/.bin/yarn
npm: 6.9.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.5, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
Android SDK:
API Levels: 23, 26, 27, 28, 29
Build Tools: 27.0.3, 28.0.2, 28.0.3, 30.0.0
System Images: android-28 | Intel x86 Atom, android-28 | Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom_64
IDEs:
Android Studio: 3.5 AI-191.8026.42.35.6010548
Xcode: 11.5/11E608c - /usr/bin/xcodebuild
npmPackages:
react: ^16.13.1 => 16.13.1
react-native: 0.61.5 => 0.61.5
npmGlobalPackages:
react-native-cli: 2.0.1

Platforms

iOS emulator

Versions

Description

To repro just go to screen which uses basic DateTimePicker. I think it only happens in iOS emulator, because I wasn't able to repro it in codesandbox
I tried using the picker from @react-native-community/datetimepicker - it doesn't have this error.

image

I think the error was introduced in this PR

bug

Most helpful comment

(Found the issue, fixing it)

All 12 comments

Same issue here

Same issue here.
Is there any solution? I need to solve this issue ASAP in production mode.

Thanks all for reporting.
I’ll check it out soon. In the meantime, can’t you downgrade to the
previous minor version?
(The previous npm version bump actually had to be a major).

On Tue, 11 Aug 2020 at 01:05, gabes-dev notifications@github.com wrote:

Same issue here.
Is there any solution? I need to solve this issue ASAP in production mode.

β€”
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mmazzarolo/react-native-modal-datetime-picker/issues/463#issuecomment-671632478,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACIYGYT5NF24QYTS2VSC7JTSAB4KFANCNFSM4P2JT6VQ
.

(Found the issue, fixing it)

@mmazzarolo πŸ™πŸ™πŸ™ thank you!

anyone willing to give it a try?
https://github.com/mmazzarolo/react-native-modal-datetime-picker/pull/464

you can install it with: yarn add "mmazzarolo/react-native-modal-datetime-picker#464/head"

Same issue here.
Is there any solution? I need to solve this issue ASAP in production mode.

same here 😨

@idanCemento please see the message above. If it works I can publish the fix.

@idanCemento please see the message above. If it works I can publish the fix.

LGTM!

v8.9.2 is available, LMK if it looks good
https://github.com/mmazzarolo/react-native-modal-datetime-picker/releases/tag/v8.9.2

Yes, it's working now,
Thanks @mmazzarolo

Thanks for reporting πŸ‘

Was this page helpful?
0 / 5 - 0 ratings