also add pressed state

This commit is contained in:
Hailey
2024-06-09 16:33:38 -07:00
parent 95cf29633e
commit 0d69c9638c
+4 -2
View File
@@ -132,10 +132,12 @@ function Header({
a.justify_center,
a.rounded_sm,
{backgroundColor: t.palette.primary_500},
state.hovered && {backgroundColor: t.palette.primary_600},
(state.hovered || state.pressed) && {
backgroundColor: t.palette.primary_600,
},
]}
{...props}>
<Text style={[a.font_bold]}>
<Text style={[a.font_bold, {color: 'white'}]}>
<Trans>Share</Trans>
</Text>
</Pressable>