diff --git a/src/screens/Feeds/VibeScreen.tsx b/src/screens/Feeds/VibeScreen.tsx index a4f745ed75..02241f8490 100644 --- a/src/screens/Feeds/VibeScreen.tsx +++ b/src/screens/Feeds/VibeScreen.tsx @@ -444,7 +444,6 @@ function VibeOverlay({ const insets = useSafeAreaInsets() const t = useTheme() const navigation = useNavigation() - const [expanded, setExpanded] = useState(false) const {status} = useEvent(player, 'statusChange', {status: player.status}) const doubleTapRef = useRef | null>(null) const [queueLike] = usePostLikeMutationQueue(post, 'Vibe') @@ -454,6 +453,7 @@ function VibeOverlay({ }) const togglePlayPause = () => { + doubleTapRef.current = null if (player.playing) { player.pause() } else { @@ -467,7 +467,7 @@ function VibeOverlay({ doubleTapRef.current = null queueLike() } else { - doubleTapRef.current = setTimeout(togglePlayPause, 300) + doubleTapRef.current = setTimeout(togglePlayPause, 200) } } @@ -506,11 +506,7 @@ function VibeOverlay({ @@ -529,8 +525,6 @@ function VibeOverlay({ {record?.text?.trim() && ( @@ -573,15 +567,12 @@ function VibeOverlay({ function ExpandableRichTextView({ value, authorHandle, - expanded, - setExpanded, }: { value: RichTextAPI authorHandle?: string - expanded: boolean - setExpanded: React.Dispatch> }) { const {height: screenHeight} = useWindowDimensions() + const [expanded, setExpanded] = useState(false) const [constrained, setConstrained] = useState(false) const [contentHeight, setContentHeight] = useState(0) const {_} = useLingui()