-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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 horizontal padding does not update on iOS #14645
Comments
Verified still happens in 0.46.0 |
Yep, happens to me too |
Happens to me too in 0.47 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Description
What happens
When changing horizontal padding (
paddingRight
,paddingLeft
,paddingHorizontal
) on a TextInput during focus change, the text in the TextInput view should reflect the padding change.What makes this especially odd is that changing any vertical padding by more than the height of the view (for height 20 can have left and right of 10 or horizontal of 20) makes the text respect the horizontal padding changes.
What I expected
When changing the horizontal padding, the text should change position to respect the padding.
Reproduction Steps
Using the sample code below...
Sample Code
Run the code below on iOS and switch focus between the two text inputs. Opening the inspector shows that the padding is updated, but the text itself doesn't actually update its position.
https://snack.expo.io/S1B3TZv7Z
Solution
The ideal fix is to make sure horizontal padding updates are respected, even if it is on one axis. The issue doesn't seem to lie within what React thinks the view should look like, but instead with the actual iOS view code.
Additional Information
The text was updated successfully, but these errors were encountered: