Skip to content

fix: add ios.componentProvider to codegenConfig #981

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saseungmin
Copy link

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
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.

1 participant