mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 09:59:31 +08:00
android statusBar 改为白色
This commit is contained in:
parent
ecac562fc3
commit
23bdaeecdf
21 changed files with 116 additions and 7 deletions
13
index.js
13
index.js
|
@ -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(() => {});
|
||||
})
|
||||
});
|
||||
|
||||
|
|
|
@ -31,6 +31,10 @@ export default class AboutPage extends Component {
|
|||
title: {
|
||||
text: '关于'
|
||||
}
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -64,7 +64,11 @@ export default class DiaryDetailPage extends Component {
|
|||
}
|
||||
|
||||
return {
|
||||
topBar
|
||||
topBar,
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@ export default class FeedbackPage extends Component {
|
|||
title: {
|
||||
text: '意见反馈'
|
||||
}
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,6 +31,10 @@ export default class FollowPage extends Component {
|
|||
|
||||
color: Color.primary // android
|
||||
}]
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -36,6 +36,10 @@ export default class FollowUserPage extends Component {
|
|||
title: {
|
||||
text: '关注用户'
|
||||
}
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -33,6 +33,11 @@ export default class NotebookDetailPage extends Component {
|
|||
|
||||
return {
|
||||
topBar
|
||||
,
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -64,6 +64,10 @@ export default class NotebookEditPage extends Component {
|
|||
// hide bottom tab for android
|
||||
drawBehind: true,
|
||||
animate: true
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,6 +21,10 @@ export default class NotificationHistoryPage extends Component {
|
|||
title: {
|
||||
text: '提醒历史'
|
||||
}
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@ export default class NotificationPage extends Component {
|
|||
|
||||
color: Color.primary // android
|
||||
}]
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -33,6 +33,15 @@ export default class PasswordPage extends Component {
|
|||
};
|
||||
}
|
||||
|
||||
static options(passProps) {
|
||||
return {
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
Token.getLoginPassword()
|
||||
.then(pwd => {
|
||||
|
|
|
@ -36,6 +36,10 @@ export default class SettingPage extends Component {
|
|||
title: {
|
||||
text: '设置'
|
||||
}
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -30,6 +30,10 @@ export default class TopicPage extends Component {
|
|||
|
||||
color: '#aaa' // android
|
||||
}]
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -46,6 +46,10 @@ export default class EditIntroPage extends Component {
|
|||
// hide bottom tab for android
|
||||
drawBehind: true,
|
||||
animate: true
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -46,6 +46,10 @@ export default class UserNameEditPage extends Component {
|
|||
// hide bottom tab for android
|
||||
drawBehind: true,
|
||||
animate: true
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -37,6 +37,10 @@ export default class WebViewPage extends Component {
|
|||
id: "open",
|
||||
icon: Icon.navButtonOpen
|
||||
}]
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -67,6 +67,10 @@ export default class WritePage extends Component {
|
|||
id: 'save',
|
||||
icon: Icon.navButtonSave
|
||||
}]
|
||||
},
|
||||
statusBar: {
|
||||
backgroundColor: 'white',
|
||||
style: 'dark'
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue