-
Notifications
You must be signed in to change notification settings - Fork 83
-
Notifications
You must be signed in to change notification settings - Fork 83
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
Switch View looks cut on my android(4.4.2). #21
Comments
Dive into the component's index.js in node_modules and change the padding set in the constructor: this.padding = 6 // was originally 2 Did the trick for me, although I've only checked the results on one Android device and with my own custom switch: <Switch
buttonRadius={10}
switchHeight={12}
switchWidth={32}
...
/> |
Yes, padding increase works only for this or similar setup. For permanent fix (or I hope it is, tested on various dimensions), in parent View that starts on line
modify
(add ' and modify Animated.View's top and lett absolute values like so:
(basically just add ' this makes the switch travel area and the button circle centered in container |
The text was updated successfully, but these errors were encountered: