Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 549 Bytes

File metadata and controls

20 lines (16 loc) · 549 Bytes

react-native-app-helpers/RequiredTextInputProps

Props to be given to required text input components.

Usage

import type { RequiredTextInputProps } from "react-native-app-helpers";

const example: RequiredTextInputProps = {
  value: "Example Value",
  onChange(value: undefined | string, complete: boolean): void {
    console.log(`Value: ${value}, complete: ${complete ? "Yes" : "No"}`);
  }}
  disabled: false,
  autoFocus: true,
  placeholder: "Shown when no text has been entered",
  unique: [`Not`, `In`, `This`, `List`],
};