import { Carousel, CarouselItem } from '@/components/ui/carousel'; import { Text } from '@/components/ui/text'; import { View } from '@/components/ui/view'; import { useColor } from '@/hooks/useColor'; import React from 'react'; import { Dimensions } from 'react-native'; const { width: screenWidth } = Dimensions.get('window'); export function CarouselCustomWidth() { const cardColor = useColor('card'); const textColor = useColor('text'); const products = [ { id: 1, name: 'Wireless Headphones', price: '$99.99', rating: '4.8' }, { id: 2, name: 'Smart Watch', price: '$199.99', rating: '4.9' }, { id: 3, name: 'Bluetooth Speaker', price: '$79.99', rating: '4.7' }, { id: 4, name: 'Phone Case', price: '$24.99', rating: '4.6' }, { id: 5, name: 'Wireless Charger', price: '$39.99', rating: '4.8' }, ]; return ( {products.map((product) => ( {product.name} ⭐ {product.rating} rating {product.price} ))} Swipe to see more products → ); }