The mask can also be a function that receives the current value and returns the array mask. That's to help you to change the mask dynamically based on the value. importMaskInputfrom'react-native-mask-input'constCPF_MASK=[/\d/,/\d/,/\d/,".",/\d/,/\d/,/\d/,".",/\d/,/\...
cpfMask : cnpjMask const placeholder = documentType === 'cpf' ? 'CPF' : 'CNPJ' return ( <FormItem className="grow"> <FormControl> <InputMask component={Input} mask={mask} replacement={{ x: /\d/ }} placeholder={placeholder} type="text" autoCapitalize="none" autoCorrect="off" {......
0.3.0•Public• Published9 months ago React Brazilian Documents A library with inputs with masks to use in brazilian forms. Features NameDescription CpfInputHandles CPF document. CnpjInputHandles CNPJ document. Utilities FunctionsUtilities functions to format, mask, and validate CPF and CNPJ. ...
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/161565.html原文链接:https://java...
<View style={container}> <Text>Focusing next input</Text> <TextInput value={this.state.name} onChangeText={name => { this.setState({ name }) }} onSubmitEditing={() => { this._cpfRef.getElement().focus() }} placeholder='Name' /> <TextInputMask ref={ref => this._cpfRef = ref...
lv&D{6(g_lzyF3A`7Jn*&d_kL<;dAFx!UZ>hB8 z5A*%LsAn;VLp>3${0>M?PSQ)9s3}|h2e?TG4_F{}{Cs>#3Q*t$(CUc}M)I}8cPF6% z=+h(Kh^8)}gj(0}#e7O^FQ6`~fd1#8#!}LMuo3A0bN`o}PYsm!Y}sdOz$+Tegc=qT z8x`PH$7lvnhJp{kHWb22l;@7B7|4yL4UOOVM0MP_>P%S1Lnid)+k9{+3D...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting f...
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== Expand Down 0 comments on commit 9191d47 Please sign in to comment. Footer © 2024 GitHub, Inc. Footer navigation Terms Privacy Security Status Docs Contact Man...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...