mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix "[TM][JS] Forward NativeModule schema to __turboModuleProxy"
Summary: Changelog: [Internal] Reviewed By: PeteTheHeat Differential Revision: D22888030 fbshipit-source-id: cb2b47f51f6ad5a7397045ffe5b81c9e1e396250
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b5097c8dcd
commit
9728d04f96
@@ -27,7 +27,8 @@ function requireModule<T: TurboModule>(name: string, schema?: ?$FlowFixMe): ?T {
|
||||
}
|
||||
|
||||
if (turboModuleProxy != null) {
|
||||
const module: ?T = turboModuleProxy(name, schema);
|
||||
const module: ?T =
|
||||
schema != null ? turboModuleProxy(name, schema) : turboModuleProxy(name);
|
||||
return module;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user