React-native-modal-datetime-picker: Chrome debugger crashes on DateTimePickerModal rendering : "Calling synchronous methods on native modules is not supported in Chrome" #316

Created on 23 Oct 2020  路  6Comments  路  Source: mmazzarolo/react-native-modal-datetime-picker


I swapped react-native-datetime-picker with react-native-community/datetimepicker and the crash does not happen.

Environment

System:
    OS: macOS 10.15.6
    CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
    Memory: 42.18 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 12.18.3 - ~/.nvm/versions/node/v12.18.3/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.14.6 - ~/.nvm/versions/node/v12.18.3/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.8.4 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 13.6, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2
    Android SDK:
      API Levels: 23, 26, 27, 28, 29
      Build Tools: 23.0.1, 26.0.1, 26.0.2, 27.0.3, 28.0.1, 28.0.3, 29.0.2
      System Images: android-25 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
      Android NDK: Not Found
  IDEs:
    Android Studio: 3.1 AI-173.4819257
    Xcode: 11.6/11E708 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_171 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.12.0 => 16.12.0 
    react-native: 0.62.0 => 0.62.0 
  npmGlobalPackages:
    *react-native*: Not Found

Platforms

i have tested only on iOS, but I believe it is related to both.

Versions

branch master

Description

As said in the title, I get this error when debugging on an iOS simulator (not tried on Android) with the React Native Debugger desktop app.

Capture d鈥檈虂cran 2020-10-23 a虁 17 44 39

When debug mode is off, there is no error.
I tried to remove all props from DateTimePickerModal to see if any could have triggered the error, but even then the crash still happens.

Reproducible Demo

I do not know how to provide a reproducible demo for this, and I can not provide code as it belongs to my company. As I said, simply rendering <DateTimePickerModal /> without any prop will crash when you are in Debug mode.

bug

Most helpful comment

I still have the issue too. Any update?
Can this be reopened?

All 6 comments

Running the example (from the example dir) works fine:
image

Make sure you update the community datepicker, 2.6.2 is not supported.

Hello, I followed your advice and upgraded the community date picker to the latest version (3.0.4), but the error still happens in debug mode :/

Capture d鈥檈虂cran 2020-10-26 a虁 12 15 39
Capture d鈥檈虂cran 2020-10-26 a虁 12 16 02

Is there any news on this? I still have this issue

I still have the issue too. Any update?
Can this be reopened?

Any update on this?

From the issue template:

Reproducible Demo

Let us know how to reproduce the issue. Include a code sample or share a project that reproduces the issue.
Follow the guidelines for providing a minimal example: https://stackoverflow.com/help/mcve
Please notice that WE WON'T SUPPORT ISSUE REPORTS THAT DON'T HAVE A MINIMAL REPRODUCIBLE EXAMPLE.

Was this page helpful?
0 / 5 - 0 ratings