Skip to content

[Flare] Add RN build step for ReactTypes#15926

Merged
trueadm merged 1 commit intofacebook:masterfrom
trueadm:react-types-fix
Jun 19, 2019
Merged

[Flare] Add RN build step for ReactTypes#15926
trueadm merged 1 commit intofacebook:masterfrom
trueadm:react-types-fix

Conversation

@trueadm
Copy link
Copy Markdown
Contributor

@trueadm trueadm commented Jun 19, 2019

When we build for React Native, we have a packaging task that copies ReactTypes to the shims directory. The issue is that, because event responders are renderer specific, they import from the react-reconciler. When this is used in RN, there is no react-reconciler package, so this results in a Flow type error. To address this, we modify the import line at build time and change it to the RN specific renderer so that this doesn't cause a Flow error.

Copy link
Copy Markdown
Member

@rickhanlonii rickhanlonii left a comment

Choose a reason for hiding this comment

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

LGTM

@sizebot
Copy link
Copy Markdown

sizebot commented Jun 19, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

@trueadm trueadm merged commit 4a7a39b into facebook:master Jun 19, 2019
@trueadm trueadm deleted the react-types-fix branch June 19, 2019 12:27
rickhanlonii pushed a commit to rickhanlonii/react that referenced this pull request Jun 25, 2019
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