react-native-mask-text
Version:
A React Native and Expo library to mask text
11 lines (10 loc) • 408 B
TypeScript
/// <reference types="react" />
import { TextProps } from 'react-native';
import type { MaskOptions } from '../@types/MaskOptions';
export interface MaskedTextProps {
children: string;
mask?: string;
type?: 'custom' | 'currency';
options?: MaskOptions;
}
export declare function MaskedText({ children: text, mask: pattern, type, options, ...rest }: MaskedTextProps & TextProps): JSX.Element;