页面增加白色背景

This commit is contained in:
mx1700 2019-07-06 21:27:29 +08:00
parent c3e1aac37c
commit 0d8d2e31df
6 changed files with 6 additions and 2 deletions

View file

@ -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%'

View file

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

View file

@ -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',

View file

@ -118,6 +118,7 @@ const localStyle = StyleSheet.create({
container: { container: {
flex: 1 flex: 1
, backgroundColor: 'white'
}, },
tabBar: { tabBar: {
backgroundColor: '#fff', backgroundColor: '#fff',

View file

@ -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>
); );
} }

View file

@ -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',