Enable layout animation on RoomsListView

This commit is contained in:
Diego Mello 2022-11-30 13:07:00 -03:00
parent 21dbc7e112
commit 2cefe12a91
1 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@ import * as HeaderButton from '../../containers/HeaderButton';
import StatusBar from '../../containers/StatusBar';
import ActivityIndicator from '../../containers/ActivityIndicator';
import { serverInitAdd } from '../../actions/server';
// import { animateNextTransition } from '../../lib/methods/helpers/layoutAnimation';
import { animateNextTransition } from '../../lib/methods/helpers/layoutAnimation';
import { TSupportedThemes, withTheme } from '../../theme';
import EventEmitter from '../../lib/methods/helpers/events';
import { themedHeader } from '../../lib/methods/helpers/navigation';
@ -367,11 +367,11 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
| (Pick<IRoomsListViewState, keyof IRoomsListViewState> | IRoomsListViewState | null),
callback?: () => void
) => {
// if (this.animated) {
// this.scroll?.prepareForLayoutAnimationRender();
// animateNextTransition();
// }
this.setState(state, callback);
if (this.animated) {
this.scroll?.prepareForLayoutAnimationRender();
animateNextTransition();
}
};
addRoomsGroup = (data: ISubscription[], header: string, allData: ISubscription[]) => {