TextInput : Unable to prevent chars to be added on iOS. #19252
Labels
Component: TextInput
Related to the TextInput component.
Platform: iOS
iOS applications.
Resolution: Locked
This issue was locked by the bot.
It's impossible on iOS to prevent some new chars to be typed.
Here's a snack where only numbers are accepted in the input. It works perfectly on android. No on iOS.
Environment
OS: macOS High Sierra 10.13.4
Node: 9.11.1
Yarn: 1.6.0
npm: 6.0.0
Watchman: Not Found
Xcode: Not Found
Android Studio: 3.1 AI-173.4720617
Steps to Reproduce
onChangeText
callbackTextInput
's value using thesetState
method.Expected Behavior
Removing the char as soon as it's been typed. Works on Android.
Actual Behavior
The non accepted char stays in the TextInput even though the component re-rendered assigning the corrected value to the
TextInput
.The text was updated successfully, but these errors were encountered: