Skip to content

Conversation

@saseungmin
Copy link
Contributor

Description

Fix deprecation warning by adding missing ios.componentProvider and modulesProvider configuration.

Problem

When using react-native-date-picker, the following deprecation warning appears:

[DEPRECATED] react-native-date-picker should add the 'ios.componentProvider' property in their codegenConfig
image

Solution

  • Added the missing iOS configuration to the codegenConfig in package.json:

Added configurations:

  • componentProvider: Maps JavaScript RNDatePicker component to iOS RNDatePicker class
  • modulesProvider: Maps JavaScript RNDatePicker module to iOS RNDatePickerManager class

Testing

  • environment: expo sdk 53 & react-native v0.79.2
  • Verified deprecation warning no longer appears
  • UI component continues to work as expected
  • Module functions (openPicker, closePicker) work correctly

- Add missing ios.componentProvider and modulesProvider properties
- Fixes: [DEPRECATED] react-native-date-picker should add the 'ios.componentProvider' property in their codegenConfig
@henninghall henninghall merged commit 536f69c into henninghall:master Jun 5, 2025
5 of 8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants