fix show member point list expire
This commit is contained in:
parent
ebb96bdbb8
commit
82dfd027b9
@ -64,16 +64,7 @@ class MemberPoinExpire extends Component {
|
||||
|
||||
render() {
|
||||
return (
|
||||
<ScrollView contentContainerStyle={{flex: 1}}
|
||||
refreshControl={
|
||||
<RefreshControl
|
||||
refreshing={this.state.refreshing}
|
||||
onRefresh={this._onRefresh}
|
||||
/>
|
||||
}
|
||||
showsVerticalScrollIndicator={false}
|
||||
scrollEventThrottle={16}
|
||||
>
|
||||
<View style={{flex: 1}}>
|
||||
<NavigationEvents
|
||||
onDidFocus={() => {
|
||||
this.initData()
|
||||
@ -96,11 +87,10 @@ class MemberPoinExpire extends Component {
|
||||
</LinearGradient>
|
||||
|
||||
<LinearGradient colors={['#3AA40C', '#2C7C0B']} style={{
|
||||
flex: 1,
|
||||
width: null,
|
||||
height: null,
|
||||
resizeMode: 'cover',
|
||||
flex: 0.8
|
||||
flex: 1
|
||||
}}>
|
||||
<BackgroundImage>
|
||||
<View style={{padding: 16, flex: 1}}>
|
||||
@ -132,13 +122,24 @@ class MemberPoinExpire extends Component {
|
||||
pagingEnabled={true}
|
||||
extraData={this.state}
|
||||
keyExtractor={(item, index) => 'expire_' + index}
|
||||
refreshControl={
|
||||
<RefreshControl
|
||||
refreshing={this.state.refreshing}
|
||||
onRefresh={this._onRefresh}
|
||||
/>
|
||||
}
|
||||
ListEmptyComponent={
|
||||
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center', margin: 16,padding:16,borderRadius:5,backgroundColor:'white'}}>
|
||||
<Text style={[styles.mainText, {fontSize: 16, color: 'grey'}]}> ไม่พบรายการคูปองที่กำลังจะหมดอายุ </Text>
|
||||
</View>
|
||||
}
|
||||
/>
|
||||
</View>
|
||||
</View>
|
||||
</BackgroundImage>
|
||||
<IndicatorLoading loadingVisible={this.state.isLoading} />
|
||||
</LinearGradient>
|
||||
</ScrollView>
|
||||
</View>
|
||||
)
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user