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 // hide top bar for android
drawBehind: true, drawBehind: true,
animate: true animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
} }
} }
} }
@ -67,6 +71,10 @@ function loginByPassword() {
// hide bottom tab for android // hide bottom tab for android
drawBehind: true, drawBehind: true,
animate: true animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
} }
}, },
passProps: { passProps: {
@ -109,11 +117,6 @@ Navigation.events().registerAppLaunchedListener(async () => {
Push.init((msg) => { Push.init((msg) => {
console.log("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: { title: {
text: '关于' text: '关于'
} }
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
} }
}; };
} }

View file

@ -64,7 +64,11 @@ export default class DiaryDetailPage extends Component {
} }
return { 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() { componentDidMount() {
this.navigationEventListener = Navigation.events().bindComponent(this); this.navigationEventListener = Navigation.events().bindComponent(this);
} }

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -30,6 +30,10 @@ export default class NotificationPage extends Component {
color: Color.primary // android 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() { componentDidMount() {
Token.getLoginPassword() Token.getLoginPassword()
.then(pwd => { .then(pwd => {

View file

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

View file

@ -30,6 +30,10 @@ export default class TopicPage extends Component {
color: '#aaa' // android 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() { componentDidMount() {
this.loadUser(); this.loadUser();
this.userInfoListener = DeviceEventEmitter.addListener(Event.userInfoUpdated, this.loadUser.bind(this)); 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 // hide bottom tab for android
drawBehind: true, drawBehind: true,
animate: 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 // hide bottom tab for android
drawBehind: true, drawBehind: true,
animate: true animate: true
},
statusBar: {
backgroundColor: 'white',
style: 'dark'
} }
}; };
} }

View file

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

View file

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

View file

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