修复 接收到推送后,提醒页面没有刷新的问题

This commit is contained in:
mx1700 2019-08-04 19:35:39 +08:00
parent 8ab11c82db
commit fe7069548d

View file

@ -75,7 +75,7 @@ export default class NotificationPage extends Component {
this.restartTipTimer().catch((err) => console.log(err))
});
this.loginListener = DeviceEventEmitter.addListener(Event.login, () => {
this.registerUser().catch((err) => console.log(err))
this.registerUser().catch((err) => console.log(err));
this.restartTipTimer().catch((err) => console.log(err))
});
this.updatePushInfo();
@ -123,6 +123,7 @@ export default class NotificationPage extends Component {
}
receiveNotification = (msg) => {
this.refresh();
this.restartTipTimer().catch((err) => console.log(err))
};