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

fix: do not overwrite external inputAccessoryView on Fabric #48339

Conversation

kirillzyusko
Copy link
Contributor

@kirillzyusko kirillzyusko commented Dec 19, 2024

Summary:

If 3rd party libs are using inputAccessoryView - the current code can easily break it. Whenever props gets changed we call setDefaultInputAccessoryView which will simply overwrite the current inputAccessoryView (which is highly undesirable).

The same fix on paper was made ~7 years ago: bf36983

Changelog:

[IOS] [FIXED] - Fixed problem with accessory view & 3rd party libs

Test Plan:

Make sure inputAccessoryView functionality works as before

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. labels Dec 19, 2024
@kirillzyusko
Copy link
Contributor Author

@cipolleschi sorry to tag you, but I know you do a lot of iOS stuff in react-native, so wanted to kindly ask you to review this PR 🙏 👀

Copy link
Contributor

@cipolleschi cipolleschi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix looks good. Thank you for taking care of it!

@facebook-github-bot
Copy link
Contributor

@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Dec 19, 2024
@facebook-github-bot
Copy link
Contributor

@cipolleschi merged this pull request in 5fc5827.

@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @kirillzyusko in 5fc5827

When will my fix make it into a release? | How to file a pick request?

robhogan pushed a commit that referenced this pull request Dec 30, 2024
Summary:
If 3rd party libs are using `inputAccessoryView` - the current code can easily break it. Whenever props gets changed we call `setDefaultInputAccessoryView` which will simply overwrite the current `inputAccessoryView` (which is highly undesirable).

The same fix on paper was made ~7 years ago: bf36983

## Changelog:

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[IOS] [FIXED] - Fixed problem with accessory view & 3rd party libs

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests

Pull Request resolved: #48339

Test Plan: Make sure `inputAccessoryView` functionality works as before

Reviewed By: javache

Differential Revision: D67451188

Pulled By: cipolleschi

fbshipit-source-id: bc3fa82ae15f8acedfd0b4e17bdea69cbd8c8a8d
@react-native-bot
Copy link
Collaborator

This pull request was successfully merged by @kirillzyusko in d34032b

When will my fix make it into a release? | How to file a pick request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants