Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub#13598
Conversation
EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web
Details of bundled changes.Comparing: b87aabd...e9ade0f schedule
Generated by 🚫 dangerJS |
|
I think this might be insufficient because it's likely RNW actually needs |
|
I think you're right. In that case we can just add it back to ReactDOM secret internals, and re-export it? |
|
Yeah but that can increase the bundle size. At least let's just export the smallest unit we can (that method alone). |
gaearon
left a comment
There was a problem hiding this comment.
Please test that this fixes RNW
2913463 to
e9ade0f
Compare
|
With these changes to React Native for Web I verified that the reproducing example from necolas/react-native-web#1096 no longer throws with a local build form this branch. I also verified the same with the examples application in the RNW repo. |
|
Coolio |
|
Should be fixed in 16.5.1 |
|
@aweary Great work! Could you make a pr with the changes to rnw? |
…ntPluginHub (facebook#13598) * Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web * Re-export injectEventPluginsByName from ReactDOM internals
…ntPluginHub (facebook#13598) * Remove injectComponentTree from unstable-native-dependencies, add EventPluginHub injectComponentTree was exposed for react-native-web, but wasn't actually being used by the project. They were using EventPluginHub through ReactDOM's secret internals, but that was removed in facebook#13539 This removes the unused injectComponentTree export, refactors the ResponderEventPlugin test so it doesn't depend on it, and also adds EventPluginHub to the exports to unbreak react-native-web * Re-export injectEventPluginsByName from ReactDOM internals
Resolves #13589
injectComponentTreewas exposed for react-native-web, but wasn't actually being used by the project. There don't appear to be any call sites forinjectComponentTreein www either (FB Internal).RNW is using
EventPluginHubthrough ReactDOM's secret internals, but that was removed in #13539This removes the unused
injectComponentTreeexport, refactors theResponderEventPlugintest so it doesn't depend on it, and also addsEventPluginHubto the exports to unbreak RNW with 16.5cc @necolas