FaridSafi / FaridSafi/react-native-gifted-chat
Is the case of "short chats stick to top" supported in an inverted list?
- Dominant language
- TypeScript
- Stars
- 14.4k
- Forks
- 3.6k
- PR merge metrics
- No merged PRs in 30d
Description
This has come up before, I think, but it's unclear to me if this use-case is supported or not.
The goal is for "short chats" (in which the total combined height of the entire conversation is less than the height of the container) to appear to align to the top:
And then, when the keyboard opens, it "pushes" the bottom of the chat up, so that it appears to align to the bottom:
I'm aware of how much a gigantic pain in the ass this is because I'm trying to implement it myself now. But thought I'd check if it's already solved. To be clear, I already tried simply flipping the isAlignedTop state. This works fine but it doesn't accommodate the changing keyboard state.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the inverted-list handling and the isAlignedTop state, then reproduce a short chat before and after the keyboard opens. Check whether the existing behavior supports switching alignment with keyboard state; done means short chats align to the top initially and appear aligned to the bottom when the keyboard opens.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react-native, typescript
- Domain
- mobile-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100