Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 502 Bytes

File metadata and controls

19 lines (15 loc) · 502 Bytes

react-native-app-helpers/NullableFloatInputProps

Props to be given to nullable float input components.

Usage

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

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