Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Improve chat performance (#6157)

* fix worklet funcs on gestures

* don't access .value in render

authored by

Samuel Newman and committed by
GitHub
468c4b8f 22dd4947

+8 -9
+2 -1
src/components/dms/ActionsWrapper.tsx
··· 53 53 .numberOfTaps(2) 54 54 .hitSlop(HITSLOP_10) 55 55 .onEnd(open) 56 + .runOnJS(true) 56 57 57 58 const pressAndHoldGesture = Gesture.LongPress() 58 59 .onStart(() => { 60 + 'worklet' 59 61 scale.value = withTiming(1.05, {duration: 200}, finished => { 60 62 if (!finished) return 61 63 runOnJS(open)() ··· 65 67 .onTouchesUp(shrink) 66 68 .onTouchesMove(shrink) 67 69 .cancelsTouchesInView(false) 68 - .runOnJS(true) 69 70 70 71 const composedGestures = Gesture.Exclusive( 71 72 doubleTapGesture,
+1 -3
src/screens/Messages/Conversation.tsx
··· 127 127 setHasScrolled={setHasScrolled} 128 128 /> 129 129 ) : ( 130 - <> 131 - <View style={[a.align_center, a.gap_sm, a.flex_1]} /> 132 - </> 130 + <View style={[a.align_center, a.gap_sm, a.flex_1]} /> 133 131 )} 134 132 {!readyToShow && ( 135 133 <View
+5 -5
src/screens/Messages/components/MessagesList.tsx
··· 202 202 convoState.items.length, 203 203 // these are stable 204 204 flatListRef, 205 - isAtTop.value, 206 - isAtBottom.value, 207 - layoutHeight.value, 205 + isAtTop, 206 + isAtBottom, 207 + layoutHeight, 208 208 ], 209 209 ) 210 210 ··· 212 212 if (hasScrolled && prevContentHeight.current > layoutHeight.value) { 213 213 convoState.fetchMessageHistory() 214 214 } 215 - }, [convoState, hasScrolled, layoutHeight.value]) 215 + }, [convoState, hasScrolled, layoutHeight]) 216 216 217 217 const onScroll = React.useCallback( 218 218 (e: ReanimatedScrollEvent) => { ··· 374 374 }, 375 375 [ 376 376 flatListRef, 377 - keyboardIsOpening.value, 377 + keyboardIsOpening, 378 378 layoutScrollWithoutAnimation, 379 379 layoutHeight, 380 380 ],