/* * Copyright (c) 2024 Huawei Device Co., Ltd. All rights reserved * Use of this source code is governed by a MIT license that can be * found in the LICENSE file. */ import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent'; import type { ViewProps, HostComponent, ProcessedColorValue } from 'react-native'; import type { WithDefault, DirectEventHandler, Int32, } from 'react-native/Libraries/Types/CodegenTypes'; export type CheckBoxEvent = Readonly<{ target: Int32; value: boolean; }>; export interface Props extends ViewProps { value?: WithDefault; disabled?: WithDefault; onChange?: DirectEventHandler; onCheckColor?: ProcessedColorValue; tintColor?: ProcessedColorValue; markSize?: WithDefault; strokeColor?: ProcessedColorValue; boxType?:WithDefault<'circle' | 'square', 'circle'>; lineWidth?: WithDefault; } export default codegenNativeComponent( 'RNCCheckbox' ) as HostComponent;