UNPKG

react-native-vietnam-currency

Version:

A simple and flexible utility for formatting Vietnamese Đồng (₫) in React Native — with built-in support for splitting currency and unit, so you can style them differently (e.g., smaller font size for the ₫ symbol).

17 lines (16 loc) 398 B
import React from "react"; import { TextStyle, ViewStyle } from "react-native"; export declare enum SeparatorType { Dot = ".", Comma = "," } export interface VndProps { value: number | string; unit?: string; style?: TextStyle; unitStyle?: TextStyle; containerStyle?: ViewStyle; separator?: SeparatorType; } declare const Vnd: React.FC<VndProps>; export default Vnd;