Enable layout animation on RoomsListView
This commit is contained in:
parent
21dbc7e112
commit
2cefe12a91
|
@ -22,7 +22,7 @@ import * as HeaderButton from '../../containers/HeaderButton';
|
||||||
import StatusBar from '../../containers/StatusBar';
|
import StatusBar from '../../containers/StatusBar';
|
||||||
import ActivityIndicator from '../../containers/ActivityIndicator';
|
import ActivityIndicator from '../../containers/ActivityIndicator';
|
||||||
import { serverInitAdd } from '../../actions/server';
|
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 { TSupportedThemes, withTheme } from '../../theme';
|
||||||
import EventEmitter from '../../lib/methods/helpers/events';
|
import EventEmitter from '../../lib/methods/helpers/events';
|
||||||
import { themedHeader } from '../../lib/methods/helpers/navigation';
|
import { themedHeader } from '../../lib/methods/helpers/navigation';
|
||||||
|
@ -367,11 +367,11 @@ class RoomsListView extends React.Component<IRoomsListViewProps, IRoomsListViewS
|
||||||
| (Pick<IRoomsListViewState, keyof IRoomsListViewState> | IRoomsListViewState | null),
|
| (Pick<IRoomsListViewState, keyof IRoomsListViewState> | IRoomsListViewState | null),
|
||||||
callback?: () => void
|
callback?: () => void
|
||||||
) => {
|
) => {
|
||||||
// if (this.animated) {
|
|
||||||
// this.scroll?.prepareForLayoutAnimationRender();
|
|
||||||
// animateNextTransition();
|
|
||||||
// }
|
|
||||||
this.setState(state, callback);
|
this.setState(state, callback);
|
||||||
|
if (this.animated) {
|
||||||
|
this.scroll?.prepareForLayoutAnimationRender();
|
||||||
|
animateNextTransition();
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
addRoomsGroup = (data: ISubscription[], header: string, allData: ISubscription[]) => {
|
addRoomsGroup = (data: ISubscription[], header: string, allData: ISubscription[]) => {
|
||||||
|
|
Loading…
Reference in New Issue