Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning: support for defaultProps will be removed #925

Open
Kaosc opened this issue Aug 17, 2024 · 1 comment
Open

Warning: support for defaultProps will be removed #925

Kaosc opened this issue Aug 17, 2024 · 1 comment

Comments

@Kaosc
Copy link

Kaosc commented Aug 17, 2024

I have swithced to expo sdk 51 with react native 0.74.5 on Android 14.
The below warning started to popup on render of the <DateTimePickerModal />

Warning: Unknown: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.

Environment info

SDKs:
  Android SDK:
    API Levels:
      - "33"
      - "34"
      - "35"
    Build Tools:
      - 33.0.1
      - 34.0.0
      - 35.0.0
    System Images:
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
Languages:
  Java: 17.0.11
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.74.5
    wanted: 0.74.5
  react-native-windows: Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

datetimepicker version: 8.2.0

@aljadan
Copy link

aljadan commented Aug 29, 2024

@Kaosc if you are using react-native-modal-datetime-picker, make sure to update to the latest version, it resolves this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants