Skip to content

Commit

Permalink
Merge pull request #601 from GetStream/CRNS-287-default-reaction-list…
Browse files Browse the repository at this point in the history
…-size

CRNS-287 - add reaction size to overlay reaction list
  • Loading branch information
nhannah authored Apr 14, 2021
2 parents 61996d6 + e75d49b commit 6b4db5f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/MessageOverlay/OverlayReactionList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const ReactionButton = <
theme: {
colors: { accent_blue, grey },
overlay: {
reactionsList: { reaction },
reactionsList: { reaction, reactionSize },
},
},
} = useTheme();
Expand Down Expand Up @@ -251,9 +251,13 @@ export const ReactionButton = <
iconStyle,
]}
>
<Icon pathFill={grey} />
<Icon height={reactionSize} pathFill={grey} width={reactionSize} />
<Animated.View style={[styles.selectedIcon, selectedStyle]}>
<Icon pathFill={accent_blue} />
<Icon
height={reactionSize}
pathFill={accent_blue}
width={reactionSize}
/>
</Animated.View>
</Animated.View>
</TapGestureHandler>
Expand Down
2 changes: 2 additions & 0 deletions src/contexts/themeContext/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@ export type Theme = {
radius: number;
reaction: ViewStyle;
reactionList: ViewStyle;
reactionSize: number;
};
};
reply: {
Expand Down Expand Up @@ -936,6 +937,7 @@ export const defaultTheme: Theme = {
radius: 2.5,
reaction: {},
reactionList: {},
reactionSize: 24,
},
},
reply: {
Expand Down

0 comments on commit 6b4db5f

Please sign in to comment.