dillon1000/react

Commit

feat[Fabric/Paper]: support isChildPublicInstance api method (#27783)

Adds `isChildPublicInstance` method to both renderers (Fabric and
Paper), which will receive 2 public instances and return if first
argument is an ancestor of the second, based on fibers.

This will be used as a fallback when DOM node APIs are not available:
for Paper renderer or for Fabric without DOM node APIs.

How it is going to be used: to determine which `AppContainer` component
in RN is responsible for highlighting an inspected element on the
screen.
Browse files
Changed paths4 files
First-parent comparison
M packages/react-native-renderer/src/ReactFabric.js ModifiedM packages/react-native-renderer/src/ReactNativePublicCompat.js ModifiedM packages/react-native-renderer/src/ReactNativeRenderer.js ModifiedM scripts/flow/react-native-host-hooks.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…