From 04852fd6fc61e9d74e1a545a67ce943347b41d86 Mon Sep 17 00:00:00 2001 From: Ramanpreet Nara Date: Fri, 13 Oct 2023 16:53:38 -0700 Subject: [PATCH] Interop example: Make argument to getRootTag deterministic (#40947) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/40947 This shows up as this.context shows up as 1 sometimes. Let's just hard-code this to 11, to make the test more reliable. Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D50253990 fbshipit-source-id: 1da75e5e5f3226676f9af67fc329a70079eed59e --- .../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 77cbd1aa8f1..30194a48813 100644 --- a/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js +++ b/packages/rn-tester/js/examples/TurboModule/SampleLegacyModuleExample.js @@ -135,7 +135,7 @@ class SampleLegacyModuleExample extends React.Component<{||}, State> { getObjectInteger: () => getSampleLegacyModule()?.getObjectInteger(99), getObjectFloat: () => getSampleLegacyModule()?.getObjectFloat(99.95), getString: () => getSampleLegacyModule()?.getString('Hello'), - getRootTag: () => getSampleLegacyModule()?.getRootTag(this.context), + getRootTag: () => getSampleLegacyModule()?.getRootTag(11), getObject: () => getSampleLegacyModule()?.getObject({a: 1, b: 'foo', c: null}), getUnsafeObject: () =>