UNPKG

react-native-rounded-checkbox

Version:

Rounded Checkbox with animated and fully customizable options library for React Native

21 lines (20 loc) 782 B
import * as React from "react"; import { ViewStyle, TextStyle, StyleProp } from "react-native"; declare type CustomViewStyleProp = StyleProp<ViewStyle> | Array<StyleProp<ViewStyle>>; declare type CustomTextStyleProp = StyleProp<TextStyle> | Array<StyleProp<TextStyle>>; export interface IRoundedCheckboxProps { text?: string; active?: boolean; isChecked?: boolean; checkedColor?: string; uncheckedColor?: string; checkedTextColor?: string; children?: React.ReactNode; uncheckedTextColor?: string; textStyle?: CustomTextStyleProp; outerStyle?: CustomViewStyleProp; innerStyle?: CustomViewStyleProp; onPress?: (checked: boolean) => void; } declare const RoundedCheckbox: React.FC<IRoundedCheckboxProps>; export default RoundedCheckbox;