dillon1000/react

Commit

Consolidate eventTypes registry with view configs (#12556)

We already have one stateful module that contains all the view config.
We might as well store the event types there too. That way the shared
state is compartmentalized (and I can move it out in a follow up PR).

The view config registry also already has an appropriate place to call
processEventTypes so now we no longer have to do it in RN.

Will follow up with a PR to RN to remove that call.
Browse files
Changed paths7 files
First-parent comparison
M packages/react-native-renderer/src/ReactFabric.js ModifiedM packages/react-native-renderer/src/ReactNativeBridgeEventPlugin.js ModifiedM packages/react-native-renderer/src/ReactNativeRenderer.js ModifiedM packages/react-native-renderer/src/ReactNativeTypes.js ModifiedM packages/react-native-renderer/src/ReactNativeViewConfigRegistry.js ModifiedM packages/react-native-renderer/src/__tests__/ReactNativeEvents-test.internal.js ModifiedD scripts/rollup/shims/react-native/ReactNativeBridgeEventPlugin.js Deleted
Patch

Files changed

Rendering syntax-highlighted changes…