react-native-gifted-chat
react-native-gifted-chat copied to clipboard
Message Container scroll doesn't work in flatlist on Android
Issue Description
Chat Message panel scrolling is not working at all on android
Steps to Reproduce / Code Snippets
Parent is FlatList
<View style={{ height: Dimensions.get('window').height, width: Dimensions.get('window').width, }}>
<View style={{ position: 'absolute', bottom: 0, left: 0, right: 0, height: 300, }}>
<GiftedChat messages={messages} user={me} />
</View>
</View>
And message has 10 items
Expected Results
We have to scroll message container.
But I can not scroll message container at all.
Additional Information
- Nodejs version: 12.22.0
- React version: 17.0.1
- React Native version: 0.64.0
- react-native-gifted-chat version: 0.16.3
- Platform(s) (iOS, Android, or both?): Android 10
- TypeScript version: I am working on Javascript
I found solution on MessageContainer.js, we have to use react-native-gesture-handler's flatlist
Sorry, but this issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. BTW Thank you for your contributions 😀 !!!
hi @panda919 how do you access MessageContainer?
i need access MessageContainer to control ContextMenu
same issue with react-native-gesture-handler v2.4.0
any solution?