fix show member point list expire
This commit is contained in:
parent
ebb96bdbb8
commit
82dfd027b9
@ -64,16 +64,7 @@ class MemberPoinExpire extends Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<ScrollView contentContainerStyle={{flex: 1}}
|
<View style={{flex: 1}}>
|
||||||
refreshControl={
|
|
||||||
<RefreshControl
|
|
||||||
refreshing={this.state.refreshing}
|
|
||||||
onRefresh={this._onRefresh}
|
|
||||||
/>
|
|
||||||
}
|
|
||||||
showsVerticalScrollIndicator={false}
|
|
||||||
scrollEventThrottle={16}
|
|
||||||
>
|
|
||||||
<NavigationEvents
|
<NavigationEvents
|
||||||
onDidFocus={() => {
|
onDidFocus={() => {
|
||||||
this.initData()
|
this.initData()
|
||||||
@ -96,11 +87,10 @@ class MemberPoinExpire extends Component {
|
|||||||
</LinearGradient>
|
</LinearGradient>
|
||||||
|
|
||||||
<LinearGradient colors={['#3AA40C', '#2C7C0B']} style={{
|
<LinearGradient colors={['#3AA40C', '#2C7C0B']} style={{
|
||||||
flex: 1,
|
|
||||||
width: null,
|
width: null,
|
||||||
height: null,
|
height: null,
|
||||||
resizeMode: 'cover',
|
resizeMode: 'cover',
|
||||||
flex: 0.8
|
flex: 1
|
||||||
}}>
|
}}>
|
||||||
<BackgroundImage>
|
<BackgroundImage>
|
||||||
<View style={{padding: 16, flex: 1}}>
|
<View style={{padding: 16, flex: 1}}>
|
||||||
@ -132,13 +122,24 @@ class MemberPoinExpire extends Component {
|
|||||||
pagingEnabled={true}
|
pagingEnabled={true}
|
||||||
extraData={this.state}
|
extraData={this.state}
|
||||||
keyExtractor={(item, index) => 'expire_' + index}
|
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>
|
||||||
</View>
|
</View>
|
||||||
</BackgroundImage>
|
</BackgroundImage>
|
||||||
<IndicatorLoading loadingVisible={this.state.isLoading} />
|
<IndicatorLoading loadingVisible={this.state.isLoading} />
|
||||||
</LinearGradient>
|
</LinearGradient>
|
||||||
</ScrollView>
|
</View>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user