{"repo":"bhrott/react-native-masked-text","free":true,"listed":false,"github":"https://github.com/bhrott/react-native-masked-text","clone":"git clone https://github.com/bhrott/react-native-masked-text.git","description":"A pure javascript masked text and input text component for React-Native.","language":"JavaScript","stars":1606,"topics":["react-native","mask","input"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-masked-text This is a simple masked text (normal text and input text) component for React-Native. Alert Hey guys! Unfortunatelly I'm not developing js apps anymore. This repo will not receive updates anymore. Supported Versions React-native: 0.32.0 or higher Install npm install react-native-masked-text --save Usage (TextInputMask) For all the masks you will use in this way: Cel Phone Mask: - BRL (default): (99) 9999-9999 or (99) 99999-9999 (will detect automatically) - INTERNATIONAL: +999 999 999 999 If you need a different formatting, use the Custom mask =). Sample code (source): Options name type required default description ---------- ------- -------- ------- ----------- maskType string no maskType the type of the mask to use. Available: BRL or INTERNATIONAL withDDD boolean no true if the mask type is BRL , include the DDD dddMask string no (99) if the mask type is BRL , the DDD mask Methods You can get the unmasked value using the getRawValue method: CPF Mask: 999.999.999-99 Sample code (source): Methods You can check if the cpf is valid by calling the isValid() method: You can get the unmasked cpf calling the getRawValue method: CNPJ Mask: 99.999.999/9999-99 Sample code (source): Methods You can check if the cnpj is valid by calling the isValid() method: You can get the unmasked cpf calling the getRawValue method: Credit Card Mask: - visa or master: 9999 9999 9999 9999 or 9999 9999 (obfuscated) - amex: 9999 999999 99999 or 9999 99999 (obfuscated) - diners: 9","default_branch":null,"files":null,"tree":[],"storefront":"/r/bhrott","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bhrott/react-native-masked-text/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}