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

[Native] Migrate focus/blur to call TextInputState with the host component #18068

Merged
merged 1 commit into from
Feb 19, 2020

Conversation

elicwhite
Copy link
Member

@elicwhite elicwhite commented Feb 18, 2020

In order to make focus/blur work for Fabric we need to make event targets be a component instance instead of a react tag.

This PR then updates the Renderer integration with TextInputState to handle instances instead of reactTag.

In order to make that work, we have to have an instance.

This changes the HostComponents, making them pass themselves to TextInputState.

Also added tests.

For Facebook employees:
This PR will need to land and by synced in conjunction with D19458214

@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@sizebot
Copy link

sizebot commented Feb 18, 2020

No significant bundle size changes to report.

Size changes (stable)

Generated by 🚫 dangerJS against b5e4b15

@sizebot
Copy link

sizebot commented Feb 18, 2020

No significant bundle size changes to report.

Size changes (experimental)

Generated by 🚫 dangerJS against b5e4b15

@elicwhite elicwhite merged commit 085d021 into facebook:master Feb 19, 2020
@elicwhite elicwhite deleted the fabric-focus-blur branch February 19, 2020 19:43
facebook-github-bot pushed a commit to facebook/react-native that referenced this pull request Feb 19, 2020
Summary:
Test sync of facebook/react#18068

- **[ad84625f8](facebook/react@ad84625f8 )**: [Native] Migrate focus/blur to call TextInputState with the host component (#18068) //<Eli White>//
- **[edab5c074](facebook/react@edab5c074 )**: Re-throw errors thrown by the renderer at the root in the complete phase (#18029) //<Andrew Clark>//
- **[a6dfe9aa4](facebook/react@a6dfe9aa4 )**: [Native] Delete NativeComponent and NativeMethodsMixin (#18036) //<Eli White>//

Changelog:
[Changed][General] Partial React Sync from 241c4467...ad84625f8

Reviewed By: mdvacca

Differential Revision: D19459322

fbshipit-source-id: daefcf854e3da1c849f8376671065c53a1319ef9
elicwhite added a commit to elicwhite/react that referenced this pull request Feb 26, 2020
osdnk pushed a commit to osdnk/react-native that referenced this pull request Mar 9, 2020
Summary:
Test sync of facebook/react#18068

- **[ad84625f8](facebook/react@ad84625f8 )**: [Native] Migrate focus/blur to call TextInputState with the host component (facebook#18068) //<Eli White>//
- **[edab5c074](facebook/react@edab5c074 )**: Re-throw errors thrown by the renderer at the root in the complete phase (facebook#18029) //<Andrew Clark>//
- **[a6dfe9aa4](facebook/react@a6dfe9aa4 )**: [Native] Delete NativeComponent and NativeMethodsMixin (facebook#18036) //<Eli White>//

Changelog:
[Changed][General] Partial React Sync from 241c4467...ad84625f8

Reviewed By: mdvacca

Differential Revision: D19459322

fbshipit-source-id: daefcf854e3da1c849f8376671065c53a1319ef9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants