import { View, Text, TouchableOpacity } from 'react-native' import React, { useState } from 'react' import TabBar from '../themes/TabBar' import { ChevronLeftIcon, MapPinIcon } from 'react-native-heroicons/outline' import { widthPercentageToDP as wp, heightPercentageToDP as hp, heightPercentageToDP } from 'react-native-responsive-screen'; import subShipping from '../constants/subShipping'; import { useNavigation } from '@react-navigation/native'; export default function ShippingAddressScreen() { const navigation = useNavigation() const [subShippingActive, setsubShipping] = useState(0) return ( } titleStyle={{ color: "black", fontWeight: "bold", fontSize: 20 }} prefixStyle={{ backgroundColor: "transparent" }} suffixStyle={{ backgroundColor: "white", borderWidth: 1, borderColor: "black" }} containerStyle="" suffixAction={() => navigation.goBack()} /> { subShipping.map((item, index) => { let isActive = index == subShippingActive; return ( setsubShipping(index)} className={`mx-4 mt-5 pb-7 ${index == subShipping.length - 1 ? "" : "border-b border-gray-200"} flex-row gap-3 `}> {item.name} {item.describe} ) }) } + Add New Shipping Address Apply ) }