From 67275988bd77950d92d8df84f62ce03ea17b0dfd Mon Sep 17 00:00:00 2001 From: James Chen Date: Thu, 28 Aug 2025 09:18:24 +0800 Subject: [PATCH] feat(ui): unify android ripple effect logic for Pressable across HomeScreen, StyledButton, and VideoCard components --- app/index.tsx | 2 +- components/StyledButton.tsx | 2 +- components/VideoCard.tv.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/index.tsx b/app/index.tsx index b2cadb0..7e8193e 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -167,7 +167,7 @@ export default function HomeScreen() { 首页 - router.push("/live")}> + router.push("/live")}> {({ focused }) => ( 直播 )} diff --git a/components/StyledButton.tsx b/components/StyledButton.tsx index e90beca..0bdb442 100644 --- a/components/StyledButton.tsx +++ b/components/StyledButton.tsx @@ -110,7 +110,7 @@ export const StyledButton = forwardRef( return ( setIsFocused(true)} onBlur={() => setIsFocused(false)} diff --git a/components/VideoCard.tv.tsx b/components/VideoCard.tv.tsx index cd32fcc..4ceb53f 100644 --- a/components/VideoCard.tv.tsx +++ b/components/VideoCard.tv.tsx @@ -151,7 +151,7 @@ const VideoCard = forwardRef( return (