Skip to content

Conversation

@saseungmin
Copy link
Contributor

Summary

  • Fix deprecation warning by adding missing ios.componentProvider configuration.
  • When using @react-native-community/datetimepicker, the following deprecation warning appears:
[Codegen] [DEPRECATED] @react-native-community/datetimepicker should add the 'ios.componentProvider' property in their codegenConfig
image

This maps the JavaScript RNDateTimePicker component to the iOS native RNDateTimePickerComponentView class for proper codegen support.

Test Plan

What's required for testing (prerequisites)?

  • react-native v0.79.2 & expo sdk 53

What are the steps to reproduce (after prerequisites)?

  • npx pod-install

Compatibility

OS Implemented
iOS
Android

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I updated the typed files (TS and Flow)
  • I added a sample use of the API in the example project (example/App.js)
  • I have added automated tests, either in JS or e2e tests, as applicable

- Add missing ios.componentProvider property to resolve deprecation warning
- Maps TenTapView JavaScript component to TenTapView iOS native class
@vonovak vonovak merged commit 5c58b3c into react-native-datetimepicker:master Jun 20, 2025
5 checks passed
@vonovak
Copy link
Member

vonovak commented Jun 20, 2025

Thank you!

vonovak pushed a commit that referenced this pull request Jun 20, 2025
## [8.4.2](v8.4.1...v8.4.2) (2025-06-20)

### Bug Fixes

* add ios.componentProvider to codegenConfig ([#981](#981)) ([5c58b3c](5c58b3c))
@vonovak
Copy link
Member

vonovak commented Jun 20, 2025

🎉 This issue has been resolved in version 8.4.2 🎉

If this package helps you, consider sponsoring us! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants