Commit a58e1a09 authored by d.arizona's avatar d.arizona

update screen

parent 8d6a05cd
import React, { Component } from 'react'
import { ScrollView, Text, KeyboardAvoidingView, View, Image } from 'react-native'
import { connect } from 'react-redux'
// Add Actions - replace 'Your' with whatever your reducer is called :)
// import YourActions from '../Redux/YourRedux'
// Styles
import styles from './Styles/CartScreenStyle'
import BaseHeader from '../Components/BaseHeader'
import { Images } from '../Themes'
import BaseText from '../Components/BaseText'
class CartScreen extends Component {
render () {
return (
<View style={{flex: 1, backgroundColor: '#4cc9f0'}}>
<BaseHeader onBackPress={() => this.props.navigation.goBack()} leftText={'Keranjang'} rightText={'1 item'} />
<ScrollView showsVerticalScrollIndicator={false} style={styles.scrollContent}>
<View style={{paddingHorizontal: 20}}>
<View style={{flexDirection: 'row', justifyContent: 'space-between', paddingVertical: 20, paddingHorizontal: 5}}>
<View style={{alignItems:'center', justifyContent: 'center',}}>
<Image source={Images.icon_pesanansaya_gray} style={{width: 30, height: 35, resizeMode:'stretch'}}/>
</View>
<View style={{paddingLeft: 10, flexGrow: 1}}>
<BaseText text={"Paket 1"} type={"bold"} onPress={() => this.props.navigation.navigate('RegisterScreen')}/>
<BaseText text={"Dijual oleh e-CartPro"} type={"regular"} style={{opacity: .8}} onPress={() => this.props.navigation.navigate('RegisterScreen')}/>
</View>
<View style={{alignItems:'center', justifyContent: 'center',}}>
<Image source={Images.icon_close} style={{width: 35, height: 35, resizeMode:'stretch'}}/>
</View>
</View>
<View style={{flexDirection: 'row', justifyContent: 'space-between', paddingVertical: 10}}>
</View>
</View>
</ScrollView>
</View>
)
}
}
const mapStateToProps = (state) => {
return {
}
}
const mapDispatchToProps = (dispatch) => {
return {
}
}
export default connect(mapStateToProps, mapDispatchToProps)(CartScreen)
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