From e5021187e96b78b53203bd95d08d6818aea47d17 Mon Sep 17 00:00:00 2001 From: "Thomas F. K. Jorna" Date: Wed, 14 Jul 2021 15:10:31 +0200 Subject: New Ignite 7.0.6 app --- app/components/checkbox/checkbox.props.ts | 44 +++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app/components/checkbox/checkbox.props.ts (limited to 'app/components/checkbox/checkbox.props.ts') diff --git a/app/components/checkbox/checkbox.props.ts b/app/components/checkbox/checkbox.props.ts new file mode 100644 index 0000000..01a13d0 --- /dev/null +++ b/app/components/checkbox/checkbox.props.ts @@ -0,0 +1,44 @@ +import { StyleProp, ViewStyle } from "react-native" +import { TxKeyPath } from "../../i18n" + +export interface CheckboxProps { + /** + * Additional container style. Useful for margins. + */ + style?: StyleProp + + /** + * Additional outline style. + */ + outlineStyle?: StyleProp + + /** + * Additional fill style. Only visible when checked. + */ + fillStyle?: StyleProp + + /** + * Is the checkbox checked? + */ + value?: boolean + + /** + * The text to display if there isn't a tx. + */ + text?: string + + /** + * The i18n lookup key. + */ + tx?: TxKeyPath + + /** + * Multiline or clipped single line? + */ + multiline?: boolean + + /** + * Fires when the user tabs to change the value. + */ + onToggle?: (newValue: boolean) => void +} -- cgit v1.2.3