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

View file

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