import React from 'react'; import { ViewProps, NativeMethods, NativeSyntheticEvent } from 'react-native'; declare type CheckBoxEvent = NativeSyntheticEvent>; declare type CommonProps = Readonly void; /** * Invoked with the new value when the value changes. */ onValueChange?: (value: boolean) => void; /** * If true the user won't be able to toggle the checkbox. * Default value is false. */ disabled?: boolean; /** * Used to locate this view in end-to-end tests. */ testID?: string; }>; declare type CheckBoxNativeType = NativeMethods; export declare type Props = Readonly; /** * Controls the colors the checkbox has in checked and unchecked states. * TODO: improve this type */ tintColors?: { true?: any; false?: any; }; /** * @deprecated: Use lineWidth instead */ strokeWidth?: number; markSize?: number; lineWidth?: number; /** * @deprecated: Use boxType instead */ shape?: number; /** * Control circle or square */ boxType: 'circle' | 'square'; strokeColor: string; onCheckColor: string; tintColor: string; }>; declare const CheckBoxWithRef: React.ForwardRefExoticComponent void) | undefined; /** * Invoked with the new value when the value changes. */ onValueChange?: ((value: boolean) => void) | undefined; /** * If true the user won't be able to toggle the checkbox. * Default value is false. */ disabled?: boolean | undefined; /** * Used to locate this view in end-to-end tests. */ testID?: string | undefined; }> & { /** * The value of the checkbox. If true the checkbox will be turned on. * Default value is false. */ value?: boolean | undefined; /** * Used to get the ref for the native checkbox */ forwardedRef?: React.Ref | undefined; /** * Controls the colors the checkbox has in checked and unchecked states. * TODO: improve this type */ tintColors?: { true?: any; false?: any; } | undefined; /** * @deprecated: Use lineWidth instead */ strokeWidth?: number | undefined; markSize?: number | undefined; lineWidth?: number | undefined; /** * @deprecated: Use boxType instead */ shape?: number | undefined; /** * Control circle or square */ boxType: 'circle' | 'square'; strokeColor: string; onCheckColor: string; tintColor: string; }> & React.RefAttributes>; export default CheckBoxWithRef;