flyerhq / react-native-chat-ui

Actively maintained, community-driven chat UI implementation with an optional Firebase BaaS.
https://flyer.chat
Apache License 2.0
364 stars 83 forks source link

feat: forward FlatList ref and make automatic scroll disableable #58

Open hirbod opened 2 years ago

hirbod commented 2 years ago

Hi,

https://github.com/flyerhq/react-native-chat-ui/blob/main/src/components/Chat/Chat.tsx#L173-L185

Forces an automated scrolling. Since I am using a customBottomComponent, I am handling things differently. Also does this not play nicely with https://github.com/facebook/react-native/pull/31402

I'll have to patch-package this for now but it would be awesome to make this

a) configurable (default activated for the normal user) b) forwardRef of FlatList so we can actually make custom scroll decisions.