Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 508 Bytes

File metadata and controls

19 lines (15 loc) · 508 Bytes

react-native-app-helpers/RequiredIntegerInputProps

Props to be given to required float input components.

Usage

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

const example: RequiredIntegerInputProps = {
  value: 12.34,
  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",
};