UNPKG

react-native-moyasar-sdk

Version:

Official React Native Moyasar SDK - Integrate Credit Cards, Apple Pay, Samsung Pay, and STC Pay with simple interfaces for a seamless payment experience in your React Native app

28 lines (27 loc) 755 B
"use strict"; import { Platform } from 'react-native'; var ReadexWeight = /*#__PURE__*/function (ReadexWeight) { ReadexWeight["Regular"] = "400"; ReadexWeight["Medium"] = "500"; return ReadexWeight; }(ReadexWeight || {}); const suffixMap = { [ReadexWeight.Regular]: 'Regular', [ReadexWeight.Medium]: 'Medium' }; function readex(weight = ReadexWeight.Regular) { const suffix = suffixMap[weight]; if (Platform.OS === 'android') { return { fontFamily: `ReadexPro-${suffix}` }; } else { return { fontFamily: `ReadexPro-${suffix}`, fontWeight: weight }; } } export const readexRegular = readex(ReadexWeight.Regular); export const readexMedium = readex(ReadexWeight.Medium); //# sourceMappingURL=fonts.js.map