Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 556 Bytes

File metadata and controls

20 lines (16 loc) · 556 Bytes

react-native-app-helpers/RequiredEmailInputProps

Props to be given to required text input components.

Usage

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

const example: RequiredEmailInputProps = {
  value: "[email protected]",
  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`],
};