mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 14:48:25 +00:00
Summary: Moved the JS wrapper function to github. To access a TurboModule from JS: ``` export interface Spec extends TurboModule { +func1: () => number, } const module = TurboModuleRegistry.get<Spec>('SampleTurboModule'); ``` This assumes: * the binding on the native side has been installed properly, i.e. `global.__turboModuleProxy` needs to be installed properly. * the module `SampleTurboModule` is registered properly in native. More instructions will be provided later. Reviewed By: yungsters Differential Revision: D13584561 fbshipit-source-id: 50d29d88787f8d9caa7a3ee0d54d378db866515c