-
Notifications
You must be signed in to change notification settings - Fork 25k
Open
fabOnReact/react-native-improved
#16Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.Never gets stalePrevent those issues and PRs from getting stalePrevent those issues and PRs from getting stalePlatform: AndroidAndroid applications.Android applications.
Description
React Native version: 0.61.4 and lower
Trying to force capitalization of characters inside a TextInput is broken on Android.
autoCapitalize="characters"doesn't seem to do anything- Using
toUpperCasein the onChangeText hook causes duplication of letters - Using
textTransform: 'uppercase'in styles block causes the same duplication of letters - Using
textTransform: 'uppercase'in a non-controlled TextInput does nothing
Steps To Reproduce
- Create a controlled TextInput and either use onTextChanged to modify the text to uppercase or use text transform in the styles block
- Type multiple lowercase characters into the text box
Describe what you expected to happen:
Characters should be capitalized
What actually happens:
Characters are capitalized and duplicated
Snack, code example, screenshot, or link to a repository:
https://snack.expo.io/@nmi09/rn-android-capitalize-input-bug
bezenson, xdcheng, YeshanJay, yagnesh-y, ldiringer and 32 more
Metadata
Metadata
Assignees
Labels
BugComponent: TextInputRelated to the TextInput component.Related to the TextInput component.Never gets stalePrevent those issues and PRs from getting stalePrevent those issues and PRs from getting stalePlatform: AndroidAndroid applications.Android applications.
