From 1f9946dc436e2bc2c68aa45dfa893d60ad8dbef1 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 17 Apr 2023 11:39:12 +0100 Subject: [PATCH 1/3] Fix old-arch component not updating background in interop layer example --- .../NativeComponentExample/js/MyLegacyViewNativeComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js index c3ce7f6a6e5547..fe1582506b9f94 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js +++ b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js @@ -45,7 +45,7 @@ export function callNativeMethodToChangeBackgroundColor( UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(viewRef), UIManager.getViewManagerConfig('RNTMyLegacyNativeView').Commands - .changeBackgroundColor, + .changeBackgroundColor.toString(), [color], ); } From 7515a704f36b6b21989b228a4ee33bbd0af07ab5 Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 17 Apr 2023 14:41:19 +0100 Subject: [PATCH 2/3] prettier --- .../NativeComponentExample/js/MyLegacyViewNativeComponent.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js index fe1582506b9f94..2f4d4155148771 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js +++ b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js @@ -44,8 +44,9 @@ export function callNativeMethodToChangeBackgroundColor( } UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(viewRef), - UIManager.getViewManagerConfig('RNTMyLegacyNativeView').Commands - .changeBackgroundColor.toString(), + UIManager.getViewManagerConfig( + 'RNTMyLegacyNativeView' + ).Commands.changeBackgroundColor.toString(), [color], ); } From c3b91c2e8a54003a2a0fa233d08c0323a6f4829e Mon Sep 17 00:00:00 2001 From: Nicola Corti Date: Mon, 17 Apr 2023 14:43:59 +0100 Subject: [PATCH 3/3] prettier - round 2 --- .../NativeComponentExample/js/MyLegacyViewNativeComponent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js index 2f4d4155148771..f1f48517e594b2 100644 --- a/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js +++ b/packages/rn-tester/NativeComponentExample/js/MyLegacyViewNativeComponent.js @@ -45,7 +45,7 @@ export function callNativeMethodToChangeBackgroundColor( UIManager.dispatchViewManagerCommand( ReactNative.findNodeHandle(viewRef), UIManager.getViewManagerConfig( - 'RNTMyLegacyNativeView' + 'RNTMyLegacyNativeView', ).Commands.changeBackgroundColor.toString(), [color], );