Preparing search index...

    Props for the CustomTextInput component

    type CustomTextInputProps = {
        testID: string;
        editable?: boolean;
        label?: string;
        value?: string;
        placeholder?: string;
        multiline?: boolean;
        keyboardType?:
            | "default"
            | "number-pad"
            | "email-address"
            | "phone-pad"
            | "numeric"
            | "url";
        mode?: "flat"
        | "outlined";
        dense?: boolean;
        error?: boolean;
        style?: StyleProp<ViewStyle>;
        contentStyle?: StyleProp<TextStyle>;
        onFocus?: () => void;
        onChangeText?: (text: string) => void;
        onEndEditing?: (text: string) => void;
        onBlur?: () => void;
        onLayout?: (event: LayoutChangeEvent) => void;
        right?: React.ReactNode;
        autoCorrect?: boolean;
        spellCheck?: boolean;
        accessibilityRole?: AccessibilityRole;
        accessibilityState?: AccessibilityState;
    }
    Index
    testID: string

    Unique identifier for testing and accessibility

    editable?: boolean

    Whether the input can be edited (default: true)

    label?: string

    Optional label displayed above the input

    value?: string

    Current text value

    placeholder?: string

    Placeholder text displayed when the input is empty

    multiline?: boolean

    Whether the input supports multiple lines (default: false).

    Multiline inputs render as a UITextView on iOS, which captures vertical pan gestures once its text overflows and never forwards them to an enclosing ScrollView. Inner scrolling is therefore disabled so the field grows to fit its content and the surrounding screen stays scrollable.

    keyboardType?:
        | "default"
        | "number-pad"
        | "email-address"
        | "phone-pad"
        | "numeric"
        | "url"

    Type of keyboard to display (default: 'default')

    mode?: "flat" | "outlined"

    Display mode: outlined or flat (default: 'outlined')

    dense?: boolean

    Whether to use dense styling (default: false)

    error?: boolean

    Whether the input has an error (displays error styling)

    style?: StyleProp<ViewStyle>

    Custom styles for the container view

    contentStyle?: StyleProp<TextStyle>

    Custom styles for the text content

    onFocus?: () => void

    Callback fired when input gains focus

    onChangeText?: (text: string) => void

    Callback fired when text changes

    onEndEditing?: (text: string) => void

    Callback fired when editing ends, with the current displayed text

    onBlur?: () => void

    Callback fired when input loses focus

    onLayout?: (event: LayoutChangeEvent) => void

    Callback fired when component layout changes

    right?: React.ReactNode

    Right element (icon or affix) to display inside the input

    autoCorrect?: boolean

    Whether to enable auto-correct (default: true)

    spellCheck?: boolean

    Whether to enable spell check (default: true)

    accessibilityRole?: AccessibilityRole

    Accessibility role exposed to assistive technologies (e.g. 'combobox')

    accessibilityState?: AccessibilityState

    Accessibility state exposed to assistive technologies (e.g. { expanded })