Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextInput with textAlign='right' inside a ScrollView gets focused on scroll (Android only) #17340

Closed
derakhshanfar opened this issue Dec 24, 2017 · 4 comments
Labels
Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@derakhshanfar
Copy link

Is this a bug report?

yes

Have you read the Contributing Guidelines?

yes

Environment

OS:  Windows 10
Node:  6.11.1
Yarn:  0.27.5
npm:  3.10.10
Watchman:  Not Found
Xcode:  Not Found
Android Studio:  2.3.3

Steps to Reproduce

When a TextInput with has textAlign: 'right' inside a ScrollView and you press on it for scrolling it will focus instead (only on Android).
here is another issue that related to this problem #12167

Expected Behavior

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

Actual Behavior

20171210_190454

Reproducible Demo

https://snack.expo.io/BJdbsooZG

@derakhshanfar derakhshanfar changed the title i want to scroll when i press on TextInput in scrollview but TextInput focuses (android only-RTL) TextInput with textAlign='right' inside a ScrollView gets focused on scroll (Android only) Dec 24, 2017
@derakhshanfar
Copy link
Author

@t4deu thanks so much for add reference to this issue but unfortunately @shadowm2 solution doesn't work!

@derakhshanfar
Copy link
Author

@t4deu and as you see there is another issue that related to this problem #2167

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like you may not be using the latest version of React Native, v0.53.0, released on January 2018. Can you make sure this issue can still be reproduced in the latest version?

I am going to close this, but please feel free to open a new issue if you are able to confirm that this is still a problem in v0.53.0 or newer.

How to ContributeWhat to Expect from Maintainers

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon. labels Feb 24, 2018
@jsina
Copy link

jsina commented Apr 14, 2018

@derakhshanfar Hi refigh :), do you have any solution for rtl textInput in ios?

@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

3 participants