Description
Hello there,
I've found a small issue on Android.
When a TextInput with has textAlign: 'right' inside a ScrollView and you press on it for scrolling it will focus instead (only on Android).
The correct behaviour would be to get focused only if you tap on it (without scrolling).
It works perfectly on iOS or if you remove the textAlign style.
EDIT: I'm having the same issue with textAlign: 'center'.
Works correctly with every other prop (left, justify, auto).
Reproduction
You can test it easily:
<ScrollView>
<TextInput style={{ textAlign: 'right' }} />
<View style={{ height: 2000 }} />
</ScrollView>
Additional Information
- React Native version: 0.40
- Platform: Android (tested on an emulated Nexus 5 and on real Moto G3)
- Operating System: MacOS
Description
Hello there,
I've found a small issue on Android.
When a
TextInputwith hastextAlign: 'right'inside aScrollViewand you press on it for scrolling it will focus instead (only on Android).The correct behaviour would be to get focused only if you tap on it (without scrolling).
It works perfectly on iOS or if you remove the
textAlignstyle.EDIT: I'm having the same issue with
textAlign: 'center'.Works correctly with every other prop (
left,justify,auto).Reproduction
You can test it easily:
Additional Information