UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

19 lines (18 loc) 687 B
import type { TextInputProps } from 'react-native'; import { type DataType, type ErrorMessage } from '../../../dt/index.js'; import { type UCInputField } from '../../../uc/index.js'; export interface RNInputDef { /** * Internal types that are not part of the spec */ internal?: undefined; /** * Fields that are part of {@link TextInputProps} * * These are safe to destructure directly in a `<TextInput />` component. * * @example `<TextInput {...attrs.spec} />` */ spec?: TextInputProps; } export declare function rnInputDef<T extends DataType>(field: UCInputField<T>, disabled: boolean, _errMsg: ErrorMessage | null): RNInputDef;