Skip to content

Commit

Permalink
Update native harmony BaseButton to not scale when full width (#7159)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle-Shanks authored Jan 11, 2024
1 parent 78eac49 commit 89dc49b
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ export const BaseButton = (props: BaseButtonProps) => {
}

const animatedStyles = useAnimatedStyle(() => ({
transform: [{ scale: interpolate(pressed.value, [0, 1], [1, 0.97]) }]
...(!fullWidth && {
transform: [{ scale: interpolate(pressed.value, [0, 1], [1, 0.97]) }]
})
}))

const handleLayoutChange = useCallback((event: LayoutChangeEvent) => {
Expand Down

0 comments on commit 89dc49b

Please sign in to comment.