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

Property ref error

Open ezequiel88 opened this issue 1 year ago • 7 comments

Is there any easy way to get the instance? Ref is missing in the latest version.

Captura de Tela 2023-05-11 às 00 38 07

ezequiel88 avatar May 11 '23 03:05 ezequiel88

The same thing happens after 2.1.0

brightsider avatar May 18 '23 07:05 brightsider

@brightsider @ezequiel88 what are you trying to access in the component with the ref?

amerikan avatar May 23 '23 09:05 amerikan

@brightsider @ezequiel88 what are you trying to access in the component with the ref?

want to be doing something like giftedChatRef.current?.scrollToBottom() which I was able to do before, and I am not able to do now after 2.1.0 functional component refactor.

Basically trying to access the underlying message list (FlatList/Scroll component).

fahad86 avatar May 23 '23 09:05 fahad86

it's like 2 months guys, any news ?

edapess avatar Jul 28 '23 13:07 edapess

any news ?

joselantifeka avatar Aug 09 '23 20:08 joselantifeka

image

I managed to solve it with these new props, I hope it works for you.

joselantifeka avatar Aug 10 '23 14:08 joselantifeka

Yeah, where did the ref property go?