UNPKG

react-native-codegen

Version:
29 lines (24 loc) 557 B
/** * 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 */ 'use strict'; import type {SchemaType, NativeModuleSchema} from '../../../CodegenSchema.js'; function wrapModuleSchema( nativeModuleSchema: NativeModuleSchema, hasteModuleName: string, ): SchemaType { return { modules: { [hasteModuleName]: nativeModuleSchema, }, }; } module.exports = { wrapModuleSchema, };