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 inside ScrollView with textAlign center not scrolling #34793

Closed
wilav-dev opened this issue Sep 26, 2022 · 2 comments
Closed

TextInput inside ScrollView with textAlign center not scrolling #34793

wilav-dev opened this issue Sep 26, 2022 · 2 comments
Labels
Component: ScrollView Component: TextInput Related to the TextInput component. Needs: Triage 🔍 Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@wilav-dev
Copy link

Description

I have many TextInput inside a ScrollView. When text is aligned left, it's working but if it is centered, it does not scroll when scrolling hover the input. If I set multiline it works but it's not the solution.

If in the example you try to scroll inside a text input area it won't work but if you remove textAlign: 'center' from input style, it works when scrolling inside an input.

Version

0.67.4

Output of npx react-native info

Steps to reproduce

  1. Add ate least 10 InputTexts inside a scrollview
  2. Set textAlign center in the style
  3. Try scrolling

Snack, code example, screenshot, or link to a repository

https://snack.expo.dev/@yamifr07/centered-textinput-workaround?platform=android

@github-actions
Copy link

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Mar 26, 2023
@github-actions
Copy link

github-actions bot commented Apr 2, 2023

This issue was closed because it has been stalled for 7 days with no activity.

@github-actions github-actions bot closed this as completed Apr 2, 2023
@facebook facebook locked as resolved and limited conversation to collaborators Apr 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Component: ScrollView Component: TextInput Related to the TextInput component. Needs: Triage 🔍 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

2 participants