[TextInput] using autoComplete prop on Android API < 26 crashes app
See original GitHub issue🐛 Bug Report
When using autoComplete
prop on Android API < 26, app crashes.
To Reproduce
- Create
<TextInput autoComplete="off" />
- Run app on Android API < 26
Expected Behavior
App doesn’t crash
Code Example
https://github.com/cherniavskii/react-native-autocomplete-issue
Environment
React Native Environment Info: System: OS: Windows 10 CPU: (8) x64 Intel® Core™ i7-4712HQ CPU @ 2.30GHz Memory: 4.10 GB / 15.91 GB Binaries: Yarn: 1.13.0 - C:\Program Files (x86)\Yarn\bin\yarn.CMD npm: 6.7.0 - C:\Program Files\nodejs\npm.CMD IDEs: Android Studio: Version 3.3.0.0 AI-182.5107.16.33.5199772
Additional info
This bug is reproducible in react-native@0.59.1, in react-native@0.58.6 it works as expected. I think it was introduced in https://github.com/facebook/react-native/commit/36957dceddbf47e78d20557f40f50bbf12068d9f
Also, it is reproducible for every autoComplete
value, not only off
.
I’ve discovered it while using Downshift, which adds autoComplete="true"
by default, so potentially a lot of people will encounter same issue.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:8
- Comments:8 (1 by maintainers)
Top GitHub Comments
Hi I am still getting this crash with 0.59.5. Crashlytics has reported over 50 users crashing with this version Android version 8 and 9
I believe the correct prop is autoCompleteType