mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
def159cd91
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue