react-native-gifted-chat icon indicating copy to clipboard operation
react-native-gifted-chat copied to clipboard

Message Container scroll doesn't work in flatlist on Android

Open panda919 opened this issue 4 years ago • 5 comments

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. image 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

panda919 avatar Jul 22 '21 10:07 panda919

I found solution on MessageContainer.js, we have to use react-native-gesture-handler's flatlist

panda919 avatar Jul 22 '21 12:07 panda919

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 😀 !!!

stale[bot] avatar Apr 17 '22 06:04 stale[bot]

hi @panda919 how do you access MessageContainer?

fukemy avatar Apr 18 '22 14:04 fukemy

i need access MessageContainer to control ContextMenu

fukemy avatar Apr 18 '22 14:04 fukemy

same issue with react-native-gesture-handler v2.4.0

alessioemireni avatar May 31 '22 13:05 alessioemireni

any solution?

Shiro1995 avatar Mar 02 '23 02:03 Shiro1995