mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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: () =>
|
||||
|
||||
Reference in New Issue
Block a user