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
This commit is contained in:
Ramanpreet Nara 2023-09-27 10:18:50 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 0d3854c6c3
Коммит 271ce7edbc
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -86,7 +86,7 @@ class SampleLegacyModuleExample extends React.Component<{||}, State> {
getNSNumber: () => getSampleLegacyModule()?.getNSNumber(20.0), getNSNumber: () => getSampleLegacyModule()?.getNSNumber(20.0),
getUnsafeObject: () => getUnsafeObject: () =>
getSampleLegacyModule()?.getObject({a: 1, b: 'foo', c: null}), getSampleLegacyModule()?.getObject({a: 1, b: 'foo', c: null}),
getRootTag: () => getSampleLegacyModule()?.getRootTag(this.context), getRootTag: () => getSampleLegacyModule()?.getRootTag(11),
getValue: () => getValue: () =>
getSampleLegacyModule()?.getValue(5, 'test', {a: 1, b: 'foo'}), getSampleLegacyModule()?.getValue(5, 'test', {a: 1, b: 'foo'}),
callback: () => callback: () =>