UNPKG

@rnw-community/react-native-payments

Version:

Accept Payments with Apple Pay and Android Pay using the Payment Request API.

7 lines (4 loc) 292 B
import { isDecimalMonetaryValue, isNumber } from '@rnw-community/shared'; import type { AmountValue } from '../../type/amount-value.type.js'; export const isValidDecimalMonetaryValue = (amountValue: AmountValue): boolean => isNumber(amountValue) || isDecimalMonetaryValue(amountValue);