Commit 1c458e5e authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo

bbbb

parent f5b33cc3
...@@ -96,17 +96,17 @@ class RewardSelect extends React.Component { ...@@ -96,17 +96,17 @@ class RewardSelect extends React.Component {
<View> <View>
<Image source={{ uri: item.reward.title_image }} <Image source={{ uri: item.reward.title_image }}
resizeMethod="resize" resizeMethod="resize"
resizeMode='stretch' resizeMode='cover'
style={{ height: 150, width: 430 }} /> style={{ height: 150, width: '100%' }} />
</View> </View>
<View style={{ flexDirection: 'row', justifyContent: 'space-between', padding: 10 }}> <View style={{ flexDirection: 'row', justifyContent:'space-between', padding:10 }}>
<View> <View>
<Text style={{ fontWeight: 'bold' }}>{item.reward.title}</Text> <Text style={{fontWeight:'bold', textAlign:'left'}}>{item.reward.title}</Text>
<Text>{item.reward.subtitle}</Text> <Text style={{textAlign:'left'}}>{item.reward.subtitle}</Text>
</View> </View>
<View> <View>
<Text style={{ textAlign: 'right' }}>Expired</Text> <Text style={{textAlign:'right'}}>Expired</Text>
<Text style={{ textAlign: 'right' }}>{item.expire_time}</Text> <Text style={{textAlign:'right'}}>{item.expire_time}</Text>
</View> </View>
</View> </View>
</Card> </Card>
......
...@@ -80,7 +80,7 @@ class RewardsList extends React.Component { ...@@ -80,7 +80,7 @@ class RewardsList extends React.Component {
</TouchableOpacity> </TouchableOpacity>
)) ))
} }
<TouchableOpacity> <TouchableOpacity onPress={()=> this.props.navigation.navigate('Reward History')}>
<Text style={{ textAlign: 'right', color: '#ccb46c' }}>REDEEM E-VOUCHER HISTORY</Text> <Text style={{ textAlign: 'right', color: '#ccb46c' }}>REDEEM E-VOUCHER HISTORY</Text>
</TouchableOpacity> </TouchableOpacity>
</ScrollView> </ScrollView>
......
...@@ -43,7 +43,7 @@ class ShoppingCart extends React.Component { ...@@ -43,7 +43,7 @@ class ShoppingCart extends React.Component {
componentDidMount() { componentDidMount() {
console.log(this.props.voucher) console.log("INI VOUCHERNYA : " + JSON.stringify(this.props.voucher))
console.log('INI VALUE : ' + this.props.value_voucher) console.log('INI VALUE : ' + this.props.value_voucher)
if (!this.props.type_pickup) { if (!this.props.type_pickup) {
this.getRate() this.getRate()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment