import { View, Text, ScrollView } from 'react-native' import React from 'react' import { widthPercentageToDP as wp, heightPercentageToDP as hp, heightPercentageToDP } from 'react-native-responsive-screen'; import TabBar from '../themes/TabBar'; import { ChevronLeftIcon } from 'react-native-heroicons/outline'; import Icon from "react-native-vector-icons/MaterialCommunityIcons" import couponData from '../constants/couponData'; export default function CouponScreen() { return ( } titleStyle={{ color: "black", fontWeight: "bold", fontSize: 20 }} prefixStyle={{ backgroundColor: "transparent" }} suffixStyle={{ backgroundColor: "white", borderWidth: 1, borderColor: "black" }} containerStyle="" suffixAction={() => navigation.goBack()} /> Best offers for you { couponData.map((item, index) => { return ( {item.couponCode} Add items worth ${item.price} more to unlock {item.discount} COPY CODE {/* this line of code make the semicircle i both side of container */} ) }) } ) }