UNPKG

@inkindcards/react-native-money

Version:

A fully native TextInput component that allows currency input with a right to left text aligment

15 lines (14 loc) 682 B
import React from 'react'; import { TextInputProps } from 'react-native'; export declare const initializeMoneyInput: (reactNode: Number, options: any) => void, extractValue: (label: string, locale?: string | undefined) => number, formatMoney: (value: Number, locale?: string | undefined) => string; interface Handles { focus: () => void; blur: () => void; } declare const MoneyInput: React.ForwardRefExoticComponent<TextInputProps & { value?: number | undefined; defaultValue?: number | undefined; locale?: string | undefined; onChangeText?: ((value: number, label: string) => void) | undefined; } & React.RefAttributes<Handles>>; export default MoneyInput;