Skip to content

[iOS] Fabric: Fixes AccessoryView not disappeared when pop up the page#47311

Closed
zhongwuzw wants to merge 2 commits intofacebook:mainfrom
zhongwuzw:features/fix_accessory_view_not_disappear
Closed

[iOS] Fabric: Fixes AccessoryView not disappeared when pop up the page#47311
zhongwuzw wants to merge 2 commits intofacebook:mainfrom
zhongwuzw:features/fix_accessory_view_not_disappear

Conversation

@zhongwuzw
Copy link
Copy Markdown
Contributor

Summary:

Fixes AccessoryView not disappeared when page poped up. After page pop up, we can see a white view it the bottom of scrren.

Fixed:
https://github.com/user-attachments/assets/90305720-656b-4546-8730-53b89fee7a66

Before:
https://github.com/user-attachments/assets/8e4fbea3-1882-48f8-aa5f-0c4e9ddc4efd

Changelog:

[IOS] [FIXED] - Fabric: Fixes AccessoryView not disappeared when pop up the page

Test Plan:

RNTester InputAccessoryView example, repro steps please see the video above.

@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 Oct 30, 2024
@javache
Copy link
Copy Markdown
Member

javache commented Oct 30, 2024

Can you explain why this regressed in Fabric? Is there equivalent logic in the paper component?

@zhongwuzw
Copy link
Copy Markdown
Contributor Author

zhongwuzw commented Oct 31, 2024

@javache I updated the code. I found the difference between them is we override the canBecomeFirstResponder of RCTInputAccessoryContentView to return true. The paper component don't do that...

@zhongwuzw
Copy link
Copy Markdown
Contributor Author

@javache Hi, can you please continue to review this? :)

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@javache merged this pull request in dd303b2.

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

This pull request was successfully merged by @zhongwuzw in dd303b2

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