/** * Copyright (c) Facebook, Inc. and its 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 */ 'use strict'; import type { BubblingEventHandler, WithDefault, } from '../../../../../Libraries/Types/CodegenTypes'; import type {ViewProps} from '../../../../../Libraries/Components/View/ViewPropTypes'; import codegenNativeComponent from '../../../../../Libraries/Utilities/codegenNativeComponent'; import {type NativeComponentType} from '../../../../../Libraries/Utilities/codegenNativeComponent'; type NativeProps = $ReadOnly<{| ...ViewProps, // Props title?: WithDefault, // Events onChange?: ?BubblingEventHandler<$ReadOnly<{|value: boolean|}>>, |}>; export default (codegenNativeComponent( 'InterfaceOnlyNativeComponentView', { interfaceOnly: true, paperComponentName: 'RCTInterfaceOnlyComponent', }, ): NativeComponentType);