react-native-mask-text
Version:
A React Native and Expo library to mask text
11 lines (10 loc) • 390 B
TypeScript
import type { FormatType } from '../@types/FormatType';
/**
* function unMask(
* @param {string} value
* @param {'custom' | 'currency'} type
* @returns {string}
*/
declare function unMask(value: string, type?: 'custom' | 'currency'): string;
declare function mask(value: string | number, pattern?: string | string[], type?: FormatType, options?: any): string;
export { mask, unMask };