Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 509 Bytes

File metadata and controls

19 lines (15 loc) · 509 Bytes

react-native-app-helpers/RequiredIntegerInputProps

Props to be given to required integer input components.

Usage

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

const example: RequiredIntegerInputProps = {
  value: 1234,
  onChange(value: undefined | number, complete: boolean): void {
    console.log(`Value: ${value}, complete: ${complete ? "Yes" : "No"}`);
  }}
  disabled: false,
  autoFocus: true,
  placeholder: "Shown when no text has been entered",
};