2.1.6 • Published 5 months ago
@types/react-native-check-box v2.1.6
Installation
npm install --save @types/react-native-check-box
Summary
This package contains type definitions for react-native-check-box (https://github.com/crazycodeboy/react-native-check-box#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-check-box.
index.d.ts
// Type definitions for react-native-check-box 2.1
// Project: https://github.com/crazycodeboy/react-native-check-box#readme
// Definitions by: Rodolphe Lemasquerier <https://github.com/rlemasquerier>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import * as React from 'react';
import { StyleProp, TextStyle, ViewStyle } from 'react-native';
export interface CheckBoxProps {
style?: StyleProp<ViewStyle> | undefined;
leftText?: string | undefined;
leftTextStyle?: StyleProp<TextStyle> | undefined;
leftTextView?: React.ReactNode | undefined;
rightText?: string | undefined;
rightTextStyle?: StyleProp<TextStyle> | undefined;
rightTextView?: React.ReactNode | undefined;
checkedImage?: React.ReactElement | undefined;
unCheckedImage?: React.ReactElement | undefined;
isChecked: boolean;
onClick: () => void;
disabled?: boolean | undefined;
checkBoxColor?: string | undefined;
checkedCheckBoxColor?: string | undefined;
uncheckedCheckBoxColor?: string | undefined;
}
declare class CheckBox extends React.Component<CheckBoxProps> {}
export default CheckBox;
Additional Details
- Last updated: Thu, 08 Jul 2021 20:21:01 GMT
- Dependencies: @types/react, @types/react-native
- Global values: none
Credits
These definitions were written by Rodolphe Lemasquerier.