mirror of
https://github.com/timepill/timepill-app.git
synced 2025-04-30 18:09:31 +08:00
页面增加白色背景
This commit is contained in:
parent
c3e1aac37c
commit
0d8d2e31df
6 changed files with 6 additions and 2 deletions
|
@ -274,6 +274,7 @@ export default class DiaryList extends Component {
|
||||||
const localStyle = StyleSheet.create({
|
const localStyle = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
flex: 1
|
flex: 1
|
||||||
|
, backgroundColor: 'white'
|
||||||
},
|
},
|
||||||
list: {
|
list: {
|
||||||
height: '100%'
|
height: '100%'
|
||||||
|
|
|
@ -136,7 +136,7 @@ export default class NotebookList extends Component {
|
||||||
render() {
|
render() {
|
||||||
let hasData = this.state.notebooks && this.state.notebooks.length > 0;
|
let hasData = this.state.notebooks && this.state.notebooks.length > 0;
|
||||||
return hasData ? (
|
return hasData ? (
|
||||||
<FlatList style={{marginTop: 15}}
|
<FlatList style={{marginTop: 15, backgroundColor: 'white'}}
|
||||||
data={this.state.notebooks}
|
data={this.state.notebooks}
|
||||||
|
|
||||||
keyExtractor={(item, index) => {
|
keyExtractor={(item, index) => {
|
||||||
|
|
|
@ -235,6 +235,7 @@ const localStyle = StyleSheet.create({
|
||||||
wrap: {
|
wrap: {
|
||||||
flex: 1,
|
flex: 1,
|
||||||
flexDirection: 'column'
|
flexDirection: 'column'
|
||||||
|
, backgroundColor: 'white'
|
||||||
},
|
},
|
||||||
container: {
|
container: {
|
||||||
alignItems:'center',
|
alignItems:'center',
|
||||||
|
|
|
@ -118,6 +118,7 @@ const localStyle = StyleSheet.create({
|
||||||
|
|
||||||
container: {
|
container: {
|
||||||
flex: 1
|
flex: 1
|
||||||
|
, backgroundColor: 'white'
|
||||||
},
|
},
|
||||||
tabBar: {
|
tabBar: {
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
|
|
|
@ -28,7 +28,7 @@ export default class NotificationHistoryPage extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<View style={localStyle.container}>
|
<View style={localStyle.container}>
|
||||||
<NotificationList {...this.props}></NotificationList>
|
<NotificationList isHistory={true} isSetRead={false} {...this.props}></NotificationList>
|
||||||
</View>
|
</View>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -236,6 +236,7 @@ export default class UserPage extends Component {
|
||||||
const localStyle = StyleSheet.create({
|
const localStyle = StyleSheet.create({
|
||||||
container: {
|
container: {
|
||||||
flex: 1
|
flex: 1
|
||||||
|
, backgroundColor: 'white'
|
||||||
},
|
},
|
||||||
tabBar: {
|
tabBar: {
|
||||||
backgroundColor: '#fff',
|
backgroundColor: '#fff',
|
||||||
|
|
Loading…
Reference in a new issue