import { StyleSheet, Text, View } from "react-native"; export type PriceDisplayProps = { price: number, currency?: { symbol: string, } } export default function PriceDisplay({ price }: PriceDisplayProps) { return ( $ {price.toLocaleString( undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2, } )} ); } export const styles = StyleSheet.create({ bigPriceWrapper: { alignContent: "center", }, bigPrice: { alignSelf: "center", fontSize: 40, marginTop: 100, marginBottom: 100, } });