mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
TM JS: Revert to import from TurboModuleRegistry.js
Summary: Changelog: [Internal] Reverting the import to the previous local module style since importing from react-native seems to introduce some perf regression. We'll revisit this later in the future. Reviewed By: yungsters Differential Revision: D18383893 fbshipit-source-id: f11d46a4545768f39199fd6fd22fcf14905d0a74
This commit is contained in:
committed by
Facebook Github Bot
parent
fa4f23e4e8
commit
fb627dac6a
@@ -10,7 +10,8 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import {TurboModuleRegistry, type TurboModule} from 'react-native';
|
||||
import type {TurboModule} from '../../Libraries/TurboModule/RCTExport';
|
||||
import * as TurboModuleRegistry from '../../Libraries/TurboModule/TurboModuleRegistry';
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
+getConstants: () => {||};
|
||||
|
||||
Reference in New Issue
Block a user