mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
17 lines
375 B
TypeScript
17 lines
375 B
TypeScript
import * as React from 'react';
|
|
import TextInputMask from 'react-native-text-input-mask';
|
|
|
|
class Example extends React.Component {
|
|
render() {
|
|
return (
|
|
<TextInputMask
|
|
onChangeText={(formatted, extracted) => {
|
|
console.log(formatted); // +1 (123) 456-78-90
|
|
console.log(extracted); // 1234567890
|
|
}}
|
|
mask={"+1 ([000]) [000] [00] [00]"}
|
|
/>
|
|
);
|
|
}
|
|
}
|