-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
fix(Switch): In the Android environment, the switch component button is on the right #47407
Comments
|
|
|
|
@nianxiongdi Is this behaviour changed with respect to some other version? |
@shubhamguptadream11 nothing has changed. |
@shubhamguptadream11 sow to solve it? |
I quickly looked into this and I believe the Switch has always been positioned on the right (that's due to how Switch gravity behaves on Android natively). Not sure we're going to change this as it will be a breaking change for all the Switch users |
View defaults to column with alignItems: stretch. That gives the switch the full width of the column. If you want it to stick to the left, try changing that to “start”, or place it in a row container, which I’m guessing most real layouts would do anyways. |
Description
In the Android environment, the switch component button is on the right
Steps to reproduce
android effect:
React Native Version
0.75.2
Affected Platforms
Runtime - Android
Output of
npx react-native info
Stacktrace or Logs
Reproducer
none
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: