From 7449fad587ec9580f7c33679ca91b7ffd0658ece Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Thu, 30 Mar 2023 11:46:27 -0700 Subject: [PATCH] Add examples of Direct Manipulation in Fabric Intrerop (#36724) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/36724 Similarly to iOS, this adds some examples of direct manipulation on Android using all the various methods. Changelog: [Internal] [Changed] - Add examples of Direct Manipulation in Fabric Intrerop Reviewed By: cipolleschi Differential Revision: D44541437 fbshipit-source-id: b6e10ac0a815f41ff3c980236b7d8c6937e92065 --- .../NativeComponentExample/js/MyNativeView.js | 8 ++++---- .../react/uiapp/component/MyLegacyViewManager.java | 5 +++++ .../facebook/react/uiapp/component/MyNativeView.java | 11 ++++++++++- 3 files changed, 19 insertions(+), 5 deletions(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js index 2f5ed092a21..51a31ae468b 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyNativeView.js +++ b/packages/rn-tester/NativeComponentExample/js/MyNativeView.js @@ -167,16 +167,16 @@ export default function MyNativeView(props: {}): React.Node { }} /> - + > Interop Layer Measurements < - + measure {getTextFor(legacyMeasure)} - + InWindow {getTextFor(legacyMeasureInWindow)} - + InLayout {getTextFor(legacyMeasureLayout)}