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

Move EventTypes to ReactTypes #15364

Merged
merged 2 commits into from
Apr 10, 2019
Merged

Conversation

trueadm
Copy link
Contributor

@trueadm trueadm commented Apr 10, 2019

This PR moves in the Flow type annotations from events/EventTypes to shared/ReactTypes to enable the RN build to properly consume these types without dependency misalignment.


export type ReactResponderEvent = {
nativeEvent: AnyNativeEvent,
target: Element | Document,
Copy link
Member

Choose a reason for hiding this comment

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

Are these global flow types? Will flow pass with these in fbsource/React Native?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are globals for Flow. We can revise them when we come to the RN work to add support for these events, but this should pass CI now.

@trueadm trueadm merged commit c64b330 into facebook:master Apr 10, 2019
@trueadm trueadm deleted the move-flow-imports branch April 10, 2019 08:56
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.

3 participants