修复bug:

1. android 4.4 首页底栏不展现
2. 重新登录后ActionSheet失效
This commit is contained in:
xuwenyang 2019-07-08 16:20:00 +08:00
parent 1170e7bcab
commit f6e2b5d157
3 changed files with 15 additions and 2 deletions

View file

@ -119,7 +119,10 @@ export default class HomePage extends Component {
} }
}, },
bottomTabs: { bottomTabs: {
visible: true visible: true,
drawBehind: false,
animate: false
} }
}); });

View file

@ -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) {

View file

@ -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: {