-
Notifications
You must be signed in to change notification settings - Fork 24.1k
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
[ANDROID] TextAlign does not apply on Text components as children of TextInput #45275
Comments
try to move object inside array it would be working ex. style={style.a} to style={[style.a]} |
in this site it showing at end if i change textAlign center to right initial showing to center |
@meetdhanani17 did you try on the android simulator? if yes can you share a screenshot as im not able to reproduce it on my end. |
Yes this works, but the issue i raised was if i want to change text align of the text component, i cant as the textinput style overshadows, and this behaviour is not observed in iOS |
can you please share screenshot of both devices with issue difference |
Description
In android, applying textAlign for children on textInput does not apply. This works in iOS
Steps to reproduce
React Native Version
0.74.84
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://snack.expo.dev/cQvwWTDFzX0THj9yNa8CA?platform=android
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: