From 5f4611d65e40eae3ca6191a15f68d69ea5a1c4cb Mon Sep 17 00:00:00 2001 From: Kirill Rogovoy Date: Tue, 20 Jul 2021 21:24:52 +0300 Subject: WIP --- app_expo/components/checkbox/checkbox.props.ts | 44 ++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app_expo/components/checkbox/checkbox.props.ts (limited to 'app_expo/components/checkbox/checkbox.props.ts') diff --git a/app_expo/components/checkbox/checkbox.props.ts b/app_expo/components/checkbox/checkbox.props.ts new file mode 100644 index 0000000..4a212e3 --- /dev/null +++ b/app_expo/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