Fix empty viewableItems check
This commit is contained in:
parent
fd82771438
commit
976753c08b
|
@ -186,7 +186,7 @@ class ListContainer extends React.Component<IListContainerProps, IListContainerS
|
||||||
if (this.mounted) {
|
if (this.mounted) {
|
||||||
this.setState({ messages: data });
|
this.setState({ messages: data });
|
||||||
|
|
||||||
if (this.animated && this.viewableItems?.[0].index === 0) {
|
if (this.animated && this.viewableItems?.[0]?.index === 0) {
|
||||||
listRef.current?.prepareForLayoutAnimationRender();
|
listRef.current?.prepareForLayoutAnimationRender();
|
||||||
animateNextTransition();
|
animateNextTransition();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue