UNPKG

react-native-form-model

Version:

An easily testable and opinionated React Native form model builder written in pure JavaScript.

26 lines (25 loc) 714 B
import i18n from 'i18n-js'; export interface FormTranslationProps { today: undefined; cancel: undefined; done: undefined; invalidValue: undefined; valueMustBeGTE: { value: number; }; valueMustBeGT: { value: number; }; valueMustBeLTE: { value: number; }; valueMustBeLT: { value: number; }; invalidTime: undefined; missingDate: undefined; dateMustBeInPast: undefined; } export declare type FormTranslationKey = keyof FormTranslationProps; export declare function lz<K extends FormTranslationKey>(key: K, options?: i18n.TranslateOptions & FormTranslationProps[K]): string; export declare function getCurrentLocale(): string;