Merge remote-tracking branch 'origin/master'

This commit is contained in:
mx1700 2019-07-15 23:11:35 +08:00
commit def159cd91
2 changed files with 6 additions and 2 deletions

View file

@ -60,9 +60,11 @@ export default class FollowPage extends Component {
this.bottomTabEventListener = Navigation.events().registerBottomTabSelectedListener(
({ selectedTabIndex, unselectedTabIndex }) => {
if(selectedTabIndex == unselectedTabIndex && selectedTabIndex == 1) {
if(this.diaryList) {
this.diaryList.scrollToTop();
}
}
}
);
}

View file

@ -64,9 +64,11 @@ export default class HomePage extends Component {
this.bottomTabEventListener = Navigation.events().registerBottomTabSelectedListener(
({ selectedTabIndex, unselectedTabIndex }) => {
if(selectedTabIndex == unselectedTabIndex && selectedTabIndex == 0) {
if(this.diaryList) {
this.diaryList.scrollToTop();
}
}
}
);
if(Api.IS_ANDROID) {