Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRNS-287 - add reaction size to overlay reaction list #601

Merged
merged 1 commit into from
Apr 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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