Open fahad86 opened 1 year ago
Crash with error:
when empty messages ([]) and inverted is set to true. This happens because internally gifted chat tries to scrollToBottom when inverted={true} even when there is no data.
<SafeAreaView> <Chat messages={[]} inverted={true} /> </SafeAreaView>
Not to scrollToBottom or crash with error Tried to get frame for out of range index -1
Tried to get frame for out of range index -1
PR #2358 submitted
Issue Description
Crash with error:
when empty messages ([]) and inverted is set to true. This happens because internally gifted chat tries to scrollToBottom when inverted={true} even when there is no data.
Steps to Reproduce / Code Snippets
Expected Results
Not to scrollToBottom or crash with error
Tried to get frame for out of range index -1
Additional Information