mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
修复bug:
1. android 4.4 首页底栏不展现 2. 重新登录后ActionSheet失效
This commit is contained in:
parent
1170e7bcab
commit
f6e2b5d157
3 changed files with 15 additions and 2 deletions
|
@ -119,7 +119,10 @@ export default class HomePage extends Component {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
bottomTabs: {
|
bottomTabs: {
|
||||||
visible: true
|
visible: true,
|
||||||
|
|
||||||
|
drawBehind: false,
|
||||||
|
animate: false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -147,7 +147,9 @@ export default class NotificationPage extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
this.list.refresh(false);
|
if(this.list) {
|
||||||
|
this.list.refresh(false);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
_onDeletePress(msg) {
|
_onDeletePress(msg) {
|
||||||
|
|
|
@ -114,6 +114,14 @@ export default class SettingPage extends Component {
|
||||||
Alert.alert('提示','确认退出登录?',[
|
Alert.alert('提示','确认退出登录?',[
|
||||||
{text: '退出', style: 'destructive', onPress: () => {
|
{text: '退出', style: 'destructive', onPress: () => {
|
||||||
Api.logout();
|
Api.logout();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* clear ActionSheet instance
|
||||||
|
*/
|
||||||
|
if(global.__action_sheet) {
|
||||||
|
global.__action_sheet = null;
|
||||||
|
}
|
||||||
|
|
||||||
Navigation.setRoot({
|
Navigation.setRoot({
|
||||||
root: {
|
root: {
|
||||||
stack: {
|
stack: {
|
||||||
|
|
Loading…
Reference in a new issue