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

Expose internal functions inside `GiftedChat` function component

Open changwoolab opened this issue 1 year ago • 2 comments

Issue Description

After 2.1.0, which migrated GiftedChat class component into function component, it is impossible to use class methods outside GiftedChat component using refs. I needed to patch package in order to use them.

Is it possible to provide a "in-library way" to get internal functions?

changwoolab avatar May 10 '23 05:05 changwoolab

@changwoolab what methods are you trying to call?

amerikan avatar May 23 '23 09:05 amerikan

@amerikan They are resetInputToolbar, messageContainerRef, scrollToBottom.

changwoolab avatar May 24 '23 02:05 changwoolab