react-native-codegen
Version:
⚛️ Code generation tools for React Native
29 lines (24 loc) • 557 B
Flow
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow strict
*/
;
import type {SchemaType, NativeModuleSchema} from '../../../CodegenSchema.js';
function wrapModuleSchema(
nativeModuleSchema: NativeModuleSchema,
hasteModuleName: string,
): SchemaType {
return {
modules: {
[hasteModuleName]: nativeModuleSchema,
},
};
}
module.exports = {
wrapModuleSchema,
};