-
Notifications
You must be signed in to change notification settings - Fork 1.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
paddingLeft of Switch doesn't work #11554
Comments
I don't think there's an expectation that Switch handles this padding. See other platforms: export default function App() {
return (
<View style={styles.container}>
<Text style={styles.paragraph}>
Change code in the editor and watch it change on your phone! Save to get a shareable url.
</Text>
<View style={{marginTop: 30, marginLeft: 30, backgroundColor: 'red'}}>
<Switch style={{paddingLeft: 10}} />
</View>
</View>
);
} |
My understanding is that there isn't a standard where Switch applies the padding value. So the fact that it is ignored is by design. |
Then, how can I solve the problem in UWP |
Can you elaborate on what you mean by this? I was focusing on the report that |
@chrisglein , You can see the difference between Switch placeholders in the above screen. |
Gotcha. Let me open a new issue to track that. |
Thank you, @chrisglein |
Problem Description
In order to fix the cut-off issue of Switch, I tried to add paddingLeft. But it doesn't work.
Are there any solutions?
Steps To Reproduce
Added paddingLeft in Switch component like the following.
<View style={{marginTop: 30, marginLeft: 30}}>
<Switch style={{paddingLeft: 10}} />
Expected Results
The placeholder of Switch shouldn't have cut-off issue.
CLI version
0.71.0
Environment
Target Platform Version
None
Target Device(s)
No response
Visual Studio Version
None
Build Configuration
None
Snack, code example, screenshot, or link to a repository
<View style={{marginTop: 30, marginLeft: 30}}>
<Switch style={{paddingLeft: 10}} />
The text was updated successfully, but these errors were encountered: