You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use react-native-masked-text. I made custom mask for Russian phone number - '+7 (999) 999-99-99'. All is cool, but I need that first digit 9 will be require digit and user can't put other digit after 7. How can I do it?
I use react-native-masked-text. I made custom mask for Russian phone number - '+7 (999) 999-99-99'. All is cool, but I need that first digit 9 will be require digit and user can't put other digit after 7. How can I do it?
My code:
<TextInputMask
type={'custom'}
options={{
mask: '+7 (999) 999-99-99'
}}
value={text}
onChangeText={(text) => onEdit(text)}
style={styles.text}
editable={editable}
clearButtonMode={editable ? 'always' : 'never'}
/>
The text was updated successfully, but these errors were encountered: