react-native-mask-text
Version:
A React Native and Expo library to mask text
14 lines • 383 B
JavaScript
import React from 'react';
import { Text } from 'react-native';
import { mask } from '../utils/mask';
export function MaskedText(_ref) {
let {
children: text,
mask: pattern = '',
type = 'custom',
options = {},
...rest
} = _ref;
return /*#__PURE__*/React.createElement(Text, rest, mask(text, pattern, type, options));
}
//# sourceMappingURL=MaskedText.js.map