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
This commit is contained in:
Ramanpreet Nara
2023-10-13 16:53:38 -07:00
committed by Facebook GitHub Bot
parent a030224d1b
commit 04852fd6fc
@@ -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: () =>