Skip to content

TextFieldProps — @gj-kit/expo-ui

A public interface from @gj-kit/expo-ui. The signature below is taken directly from the 0.8.1 release declaration.

import { TextFieldProps } from '@gj-kit/expo-ui';
interface TextFieldProps extends Omit<TextInputProps, 'style'> {
label?: string | undefined;
/** When set, the border and helper turn danger-toned and it takes precedence over helperText (§6 rejection table: mutual exclusion is not enforced). */
error?: string | undefined;
helperText?: string | undefined;
counter?: string | undefined;
labelAccessory?: ReactNode | undefined;
/** Blocks the meaning change of the old library's style (which meant input style) — use containerStyle and inputStyle (§5.4). */
style?: never;
containerStyle?: StyleProp<ViewStyle> | undefined;
inputStyle?: StyleProp<TextStyle> | undefined;
labelStyle?: StyleProp<TextStyle> | undefined;
counterStyle?: StyleProp<TextStyle> | undefined;
helperStyle?: StyleProp<TextStyle> | undefined;
containerClassName?: string | undefined;
inputClassName?: string | undefined;
labelClassName?: string | undefined;
counterClassName?: string | undefined;
helperClassName?: string | undefined;
/** Narrowly supports the RNW field relationships that the React Native core types do not have yet. */
'aria-describedby'?: string | undefined;
'aria-errormessage'?: string | undefined;
'aria-invalid'?: boolean | undefined;
'aria-required'?: boolean | undefined;
testID?: string | undefined;
unstyled?: never;
}

This declaration is the source of truth for parameters, optionality, generics, return values, and public union/type contracts. Check the package golden path and this subpath’s import conditions for required environment, permission, and error boundaries before calling it.

  • Package: @gj-kit/expo-ui
  • Version: 0.8.1
  • Public entry: .
  • Source: GitHub