Skip to content

Commit e20e6c7

Browse files
Merge pull request #970 from GetStream/vishal/mask-fill-color
feat: added support for channelListSkeleton.maskFillColor theme property [CRNS-471]
2 parents 340f338 + 6a912f6 commit e20e6c7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package/src/components/ChannelList/Skeleton.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export const Skeleton: React.FC = () => {
4141
gradientStart,
4242
gradientStop,
4343
height = 64,
44+
maskFillColor,
4445
},
4546
colors: { border, grey_gainsboro, white_snow },
4647
},
@@ -138,7 +139,7 @@ export const Skeleton: React.FC = () => {
138139
</Svg>
139140
</Animated.View>
140141
<Svg height={height} width={width}>
141-
<Path d={d.value} fill={white_snow} />
142+
<Path d={d.value} fill={maskFillColor || white_snow} />
142143
</Svg>
143144
</View>
144145
);

package/src/contexts/themeContext/utils/theme.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { vh } from '../../../utils/utils';
22

33
import type { ImageStyle, TextStyle, ViewStyle } from 'react-native';
4-
import type { CircleProps, StopProps } from 'react-native-svg';
4+
import type { CircleProps, Color, StopProps } from 'react-native-svg';
55

66
import type { IconProps } from '../../../icons/utils/base';
77

@@ -124,6 +124,7 @@ export type Theme = {
124124
gradientStart: StopProps;
125125
gradientStop: StopProps;
126126
height: number;
127+
maskFillColor?: Color;
127128
};
128129
channelPreview: {
129130
checkAllIcon: IconProps;

0 commit comments

Comments
 (0)