dillon1000/react
Commit
Browse files Extract duplicated methods in Fabric and the legacy renderer to a shared module (#26319)
## Summary The following methods have exactly the same implementation on Fabric and the legacy renderer: * `findHostInstance_DEPRECATED` * `findNodeHandle` * `dispatchCommand` * `sendAccessibilityEvent` This just extracts those functions to a common module so they're easier to change (no need to sync changes in 2 files). ## How did you test this change? Existing tests (this is a refactor).
Changed paths3 files
First-parent comparisonpackages/react-native-renderer/src/ReactFabric.js ModifiedA packages/react-native-renderer/src/ReactNativePublicCompat.js AddedM packages/react-native-renderer/src/ReactNativeRenderer.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…