android statusBar 改为白色

This commit is contained in:
mx1700 2019-07-15 22:57:31 +08:00
parent ecac562fc3
commit 23bdaeecdf
21 changed files with 116 additions and 7 deletions

View file

@ -39,6 +39,10 @@ function loginByAccount() {
// hide top bar for android
drawBehind: true,
animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
}
}
@ -67,6 +71,10 @@ function loginByPassword() {
// hide bottom tab for android
drawBehind: true,
animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
},
passProps: {
@ -109,11 +117,6 @@ Navigation.events().registerAppLaunchedListener(async () => {
Push.init((msg) => {
console.log("push init: " + msg);
Push.setAccount("12", (msg) => {
console.log("push setAccount:", JSON.stringify(msg))
})
Push.addReceiveNotificationListener(() => {});
})
});

View file

@ -31,6 +31,10 @@ export default class AboutPage extends Component {
title: {
text: '关于'
}
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -64,7 +64,11 @@ export default class DiaryDetailPage extends Component {
}
return {
topBar
topBar,
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -12,6 +12,15 @@ export default class EmptyPage extends Component {
}
}
static options(passProps) {
return {
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}
componentDidMount() {
this.navigationEventListener = Navigation.events().bindComponent(this);
}

View file

@ -30,6 +30,10 @@ export default class FeedbackPage extends Component {
title: {
text: '意见反馈'
}
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -31,6 +31,10 @@ export default class FollowPage extends Component {
color: Color.primary // android
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -36,6 +36,10 @@ export default class FollowUserPage extends Component {
title: {
text: '关注用户'
}
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -8,7 +8,8 @@ import {
Animated,
Modal,
TouchableWithoutFeedback,
InteractionManager
InteractionManager,
StatusBar
} from 'react-native';
import {Navigation} from 'react-native-navigation';
import {Button} from 'react-native-elements';
@ -24,6 +25,15 @@ import HomeDiaryData from '../dataLoader/homeDiaryData';
export default class HomePage extends Component {
static options(passProps) {
return {
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}
constructor(props) {
super(props);
this.dataSource = new HomeDiaryData();

View file

@ -33,6 +33,11 @@ export default class NotebookDetailPage extends Component {
return {
topBar
,
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -64,6 +64,10 @@ export default class NotebookEditPage extends Component {
// hide bottom tab for android
drawBehind: true,
animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -21,6 +21,10 @@ export default class NotificationHistoryPage extends Component {
title: {
text: '提醒历史'
}
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -30,6 +30,10 @@ export default class NotificationPage extends Component {
color: Color.primary // android
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -33,6 +33,15 @@ export default class PasswordPage extends Component {
};
}
static options(passProps) {
return {
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}
componentDidMount() {
Token.getLoginPassword()
.then(pwd => {

View file

@ -36,6 +36,10 @@ export default class SettingPage extends Component {
title: {
text: '设置'
}
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -30,6 +30,10 @@ export default class TopicPage extends Component {
color: '#aaa' // android
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -31,6 +31,15 @@ export default class UserInfoEditPage extends Component {
};
}
static options(passProps) {
return {
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}
componentDidMount() {
this.loadUser();
this.userInfoListener = DeviceEventEmitter.addListener(Event.userInfoUpdated, this.loadUser.bind(this));

View file

@ -46,6 +46,10 @@ export default class EditIntroPage extends Component {
// hide bottom tab for android
drawBehind: true,
animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -46,6 +46,10 @@ export default class UserNameEditPage extends Component {
// hide bottom tab for android
drawBehind: true,
animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -51,6 +51,10 @@ export default class UserPage extends Component {
id: 'followIcon',
icon: Icon.followIcon
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
} : {
topBar: {
@ -65,6 +69,10 @@ export default class UserPage extends Component {
color: Color.primary
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
}
}

View file

@ -37,6 +37,10 @@ export default class WebViewPage extends Component {
id: "open",
icon: Icon.navButtonOpen
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}

View file

@ -67,6 +67,10 @@ export default class WritePage extends Component {
id: 'save',
icon: Icon.navButtonSave
}]
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
}
};
}