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

Make generic event types less platform-specific #18378

Closed
wants to merge 1 commit into from
Closed

Make generic event types less platform-specific #18378

wants to merge 1 commit into from

Conversation

rozele
Copy link
Contributor

@rozele rozele commented Mar 14, 2018

A previous PR (#18308) enabled lazy loading of view manager constants.

This PR enables any platform to use of generic bubbling and direct event types by exposing the constants genericBubblingEventTypes or genericDirectEventTypes on the UIManagerModule.

Motivation

I am adding lazy view managers to react-native-windows, and would like to use the same approach of loading "generic" event types that apply to all view managers only once.

Test Plan

Run jest tests. Run sample app on iOS and Android.

Related PRs

#18308

Release Notes

[GENERAL][ENHANCEMENT][MINOR][Libraries/ReactNative/requireNativeComponent.js] - Enable any platform to use generic event types.

A previous PR (#18308) enabled lazy loading of view manager constants.

This PR enables any platform to use of generic bubbling and direct event types by exposing the constants `genericBubblingEventTypes` or `genericDirectEventTypes` on the UIManagerModule.
@rozele
Copy link
Contributor Author

rozele commented Mar 14, 2018

cc @matthargett

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 14, 2018
@pull-bot
Copy link

Messages
📖

Suggested label: Android

Generated by 🚫 dangerJS

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants