From 6a912f6d4c95359bfdea11306ca8c7c619be3f6d Mon Sep 17 00:00:00 2001 From: vishtree Date: Mon, 1 Nov 2021 18:53:40 +0100 Subject: [PATCH] feat: added support for channelListSkeleton.maskFillColor theme property --- package/src/components/ChannelList/Skeleton.tsx | 3 ++- package/src/contexts/themeContext/utils/theme.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/src/components/ChannelList/Skeleton.tsx b/package/src/components/ChannelList/Skeleton.tsx index 930b71204f..17f3b6c19b 100644 --- a/package/src/components/ChannelList/Skeleton.tsx +++ b/package/src/components/ChannelList/Skeleton.tsx @@ -41,6 +41,7 @@ export const Skeleton: React.FC = () => { gradientStart, gradientStop, height = 64, + maskFillColor, }, colors: { border, grey_gainsboro, white_snow }, }, @@ -138,7 +139,7 @@ export const Skeleton: React.FC = () => { - + ); diff --git a/package/src/contexts/themeContext/utils/theme.ts b/package/src/contexts/themeContext/utils/theme.ts index 52b3e19304..6a050da987 100644 --- a/package/src/contexts/themeContext/utils/theme.ts +++ b/package/src/contexts/themeContext/utils/theme.ts @@ -1,7 +1,7 @@ import { vh } from '../../../utils/utils'; import type { ImageStyle, TextStyle, ViewStyle } from 'react-native'; -import type { CircleProps, StopProps } from 'react-native-svg'; +import type { CircleProps, Color, StopProps } from 'react-native-svg'; import type { IconProps } from '../../../icons/utils/base'; @@ -124,6 +124,7 @@ export type Theme = { gradientStart: StopProps; gradientStop: StopProps; height: number; + maskFillColor?: Color; }; channelPreview: { checkAllIcon: IconProps;