From 271ce7edbce1f381864c51d6a3e83bfb9f5e1f4c Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Wed, 27 Sep 2023 10:18:50 -0700 Subject: [PATCH] Fix and re-introduce interop test (#39690) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39690 This diff re-introduces the test for the TurboModule interop layer. This test was originally reverted in D49200360, because it was broken. ***New:*** This test runs in Bridgeless mode, with the interop layer enabled. (Catalyst is now native mobileconfig ready). Changelog: [Internal] Reviewed By: makovkastar Differential Revision: D49208528 fbshipit-source-id: 3109d7826e7024fd7a1074321d4aab8f3a489609 --- .../js/examples/TurboModule/SampleLegacyModuleExample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js b/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js index ffd7b846e7..cbc298a206 100644 --- a/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js +++ b/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js @@ -86,7 +86,7 @@ class SampleLegacyModuleExample extends React.Component<{||}, State> { getNSNumber: () => getSampleLegacyModule()?.getNSNumber(20.0), getUnsafeObject: () => getSampleLegacyModule()?.getObject({a: 1, b: 'foo', c: null}), - getRootTag: () => getSampleLegacyModule()?.getRootTag(this.context), + getRootTag: () => getSampleLegacyModule()?.getRootTag(11), getValue: () => getSampleLegacyModule()?.getValue(5, 'test', {a: 1, b: 'foo'}), callback: () =>