fixed switch toggle

This commit is contained in:
u-e 2018-12-13 15:20:01 +03:00
parent 5c0ae5d6e1
commit 45bbeae04f

View File

@ -23,7 +23,7 @@ class ToggleSwitchView extends Component {
padding: 12,
circleWidth: 28,
circleHeight: 28,
translateX: 32,
translateX: 36,
isOn: false || props.isOn,
};
}
@ -42,6 +42,7 @@ class ToggleSwitchView extends Component {
backgroundColor: 'white',
transform: [{ translateX: this.offsetX }],
width: circleWidth,
marginLeft: 4,
height: circleHeight,
borderRadius: circleWidth / 2,
shadowOpacity: 0.2,