Skip to content

Commit

Permalink
one last nit
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed May 18, 2024
1 parent 521efd4 commit e7fb9e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/screens/Messages/Conversation/MessagesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,11 @@ export function MessagesList({
if (isWeb) {
return
}
dispatchCommand(flatListRef, 'scrollToEnd', [false])

// Only call this on every frame while _opening_ the keyboard
if (prev && now > 0 && now >= prev) {
dispatchCommand(flatListRef, 'scrollToEnd', [false])
}

// We want to store the full keyboard height after it fully opens so we can make some
// assumptions in onLayout
Expand Down

0 comments on commit e7fb9e7

Please sign in to comment.