Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 28 additions & 33 deletions src/screens/CheckoutScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,30 @@ const CheckoutScreen = (props) => {
}
return response;
};
const renderFooter = () =>{
return (
<View>
<View style={styles.flavorContainer}>
{/* <Image
source={require('../assets/sentry-logo.png')}
style={styles.logo}
/> */}
<Text style={{marginLeft: 5, fontWeight: '500'}}>
Deliver to Sentry - San Francisco {contactInfoData['zipCode']}
</Text>
</View>
<View>
<GradientBtn
buttonText={styles.buttonText}
colors={['#002626','#001414']}
style={styles.linearGradient}
onPress={() => performCheckoutOnServer()}
progressState={orderStatusUI}
name={'Place your order'}></GradientBtn>
</View>
</View>
)
}

return (
<View style={styles.screen}>
Expand All @@ -132,10 +156,12 @@ const CheckoutScreen = (props) => {
fontSize: 18,
fontWeight: '600',
}}>Contact Info</Text>
<View>
<View style={{flex:1}}>
<FlatList
data={items}
appDispatch={dispatch}
ListFooterComponent={renderFooter}
ListFooterComponentStyle={styles.flavorContainer}
renderItem={({item}) => {
return (
<SafeAreaView>
Expand All @@ -152,24 +178,7 @@ const CheckoutScreen = (props) => {
}}
keyExtractor={(item) => item.id}
/>
<View style={styles.flavorContainer}>
{/* <Image
source={require('../assets/sentry-logo.png')}
style={styles.logo}
/> */}
<Text style={{marginLeft: 5, fontWeight: '500'}}>
Deliver to Sentry - San Francisco {contactInfoData['zipCode']}
</Text>
</View>
<View style={styles.orderBtnContainer}>
<GradientBtn
buttonText={styles.buttonText}
colors={['#002626','#001414']}
style={styles.linearGradient}
onPress={() => performCheckoutOnServer()}
progressState={orderStatusUI}
name={'Place your order'}></GradientBtn>
</View>

</View>
</View>
);
Expand Down Expand Up @@ -214,20 +223,6 @@ const styles = StyleSheet.create({
width:300,
margin:10,
},
orderBtnContainer: {
height: 50,

paddingLeft: 20,
paddingRight: 20,
// borderRadius: 2,
borderWidth: 1,
borderColor: 'white',
flexDirection: 'column',
justifyContent: 'center',

width:300,
margin:10,
},
buttonText: {
textAlign: 'center',
fontSize: 16,
Expand Down