Skip to content

Commit 52ec06f

Browse files
authored
Gradient - fix Android line spaces (#2957)
* Gradient - fix Android line spaces * remove unused import
1 parent b4775a1 commit 52ec06f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/components/gradient/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import isString from 'lodash/isString';
22
import tinycolor from 'tinycolor2';
33
import React, {useCallback, useMemo} from 'react';
44
import {StyleSheet, StyleProp, ViewStyle} from 'react-native';
5-
import Constants from '../../commons/Constants';
65
import {Colors} from '../../style';
76
import View from '../view';
87

@@ -42,7 +41,7 @@ const Gradient = (props: GradientProps) => {
4241
const getStyle = useCallback((index: number) => {
4342
return {
4443
flex: 1,
45-
marginLeft: Constants.isIOS ? -StyleSheet.hairlineWidth : 0,
44+
marginLeft: -StyleSheet.hairlineWidth,
4645
backgroundColor: getBackgroundColor(index)
4746
};
4847
}, [getBackgroundColor]);

src/incubator/Slider/slider.api.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"description": "Custom render instead of rendering the track"
6262
},
6363
{"name": "thumbTintColor", "type": "string", "description": "Thumb color"},
64-
{"name": "DisabledThumbTintColor", "type": "string", "description": "Disabled thumb color"},
64+
{"name": "disabledThumbTintColor", "type": "string", "description": "Disabled thumb color"},
6565
{"name": "thumbStyle", "type": "ViewStyle", "description": "The thumb style"},
6666
{"name": "activeThumbStyle", "type": "ViewStyle", "description": "The active (during press) thumb style"},
6767
{

0 commit comments

Comments
 (0)