react-native-mask-text
react-native-mask-text copied to clipboard
🎭 A React Native and Expo library to mask text and inputs
Could this be used to implement a WYSYWYG editor with features such as bold, italic, underlined, strikedthrough in a multilined text input?
# Overview It just simplifies the logic and also optimize it by setting the initialValue of useState inside a function so it isn't unnecessarily calculated at every render # Test...
### Steps to reproduce 1. Add a default value, or try to reset form with default value 2. Default value will never populate if there is a mask ### Expected...
When I deleted all the text, instead of 0 the input shows NaN. it happens when precision: 0 this is my code > { console.log(text); console.log(rawText); }} style={styles.input} keyboardType="numeric" />
I can't erase the typed value, I don't have access to the value field which is common in inputText.
How do I delete the input text value, I can't at all.
## Is it possible to use Regular Expression? I was wondering if it is possible to use Regular Expression with the **mask** and **unmask** functions.
### Steps to reproduce 1. Have a MaskedTextInput without mask being defined 2. Type something and text gets erased after being shown ### Expected behaviour If mask is undefined, the...
## Describe the Feature Add [autoCapitalize](https://reactnative.dev/docs/textinput#autocapitalize) to automatically capitalize certain characters. ## Possible Implementations characters: all characters. words: first letter of each word. sentences: first letter of each sentence (default)....
Related: https://github.com/callstack/react-native-builder-bob/issues/177 We need to dynamic change main file of package.json depending on the environment. The case is that currently, we need to run `yarn prepare` on all changes to...
## Describe the Feature I think it would make sense to make the MaskedTextInput component fallback to the normal TextInput behaviour when the `mask` property is undefined. This would mean...