import React from "react"; import { FlatList, Image, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from "react-native"; import { products } from "../../../constants/product2"; import MasonryList from "@react-native-seoul/masonry-list"; import { useNavigation } from "@react-navigation/native"; const BestDeals = ({ product }) => { const navigation = useNavigation(); const cat = [ "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-08-57-885-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-00-222-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-03-056-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-01-689-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-02-255-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-06-540-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-05-217-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-08-59-121-150x150.png", "https://obanana.com/wp-content/uploads/2022/04/Ship-building-Logistics-150x150.png", "https://obanana.com/wp-content/uploads/2022/04/Aggregates-150x150.png", "https://obanana.com/wp-content/uploads/2022/03/viber_image_2022-03-30_15-09-01-102-150x150.png", "https://obanana.com/wp-content/uploads/2022/04/Travel-Tours-150x150.png", "https://obanana.com/wp-content/uploads/2022/08/health-vector-150x150.png", ]; return ( BEST DEALS! { return ( navigation.navigate("Product", { product: item }) } > { item.regular_price ? "₱"+ parseFloat(item.regular_price)?.toLocaleString('en-US'):"Inquire for price" } ); }} /> ); }; const styles = StyleSheet.create({ container: { // flex: 1, backgroundColor: "red", // alignItems: "center", // justifyContent: "center", width: "100%", // marginHorizontal: 10, marginBottom: 10, padding: 10, // height: "87%", }, wrapper: { width: "100%", height: 200, // backgroundColor: "#ffaa00", }, header: { fontSize: 14, fontWeight: "700", textTransform: "uppercase", color: "#fff", marginBottom: 10, }, AddUserV: { width: 110, height: 140, // padding: 10, margin: 5, backgroundColor: "#ffff", alignItems: "center", // borderRadius: 10, // justifyContent: "center", }, img: { width: 110, height: 110, resizeMode: "cover", // borderRadius: 10, // marginVertical:10 marginBottom: 8, // backgroundColor: "#ffaa00", }, }); export default BestDeals;