diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-07 19:30:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-07 11:30:49 -0500 |
commit | 39e775a3768007df05ab91fe3ead39e36355b19a (patch) | |
tree | c85f7915b7265a5f731ff1b6b188e69417c06133 | |
parent | d84d54bae39642ed995fbc7ef235f1ea1e88c8c0 (diff) | |
download | voidsky-39e775a3768007df05ab91fe3ead39e36355b19a.tar.zst |
add border curve in neater way (#8792)
-rw-r--r-- | src/components/Button.tsx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 4759b2a88..7904f5122 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -215,11 +215,7 @@ export const Button = React.forwardRef<View, ButtonProps>( ) const {baseStyles, hoverStyles} = React.useMemo(() => { - const baseStyles: ViewStyle[] = [ - { - borderCurve: 'continuous', - }, - ] + const baseStyles: ViewStyle[] = [] const hoverStyles: ViewStyle[] = [] /* @@ -559,6 +555,7 @@ export const Button = React.forwardRef<View, ButtonProps>( a.flex_row, a.align_center, a.justify_center, + a.curve_continuous, flattenedBaseStyles, ...(state.hovered || state.pressed ? [hoverStyles, flatten(hoverStyleProp)] |