@artmajeur/react-native-paper-phone-number-input
Version:
A performant phone number input component for react-native-paper with country picker
27 lines (26 loc) • 1.04 kB
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = useThemeWithFlagsFont;
var _reactNativePaper = require("react-native-paper");
var _constants = require("./constants");
function useThemeWithFlagsFont(themeOverrides) {
const theme = (0, _reactNativePaper.useTheme)(themeOverrides);
if (_constants.isWeb) {
if (theme.isV3) {
if (themeOverrides?.fonts?.bodyLarge?.fontFamily === undefined) {
theme.fonts.bodyLarge.fontFamily = `${_constants.defaultFlagsFont}, ${theme.fonts.bodyLarge.fontFamily}`;
}
if (themeOverrides?.fonts?.default?.fontFamily === undefined) {
theme.fonts.default.fontFamily = `${_constants.defaultFlagsFont}, ${theme.fonts.default.fontFamily}`;
}
} else {
if (themeOverrides?.fonts?.regular?.fontFamily === undefined) {
theme.fonts.regular.fontFamily = `${_constants.defaultFlagsFont}, ${theme.fonts.regular.fontFamily}`;
}
}
}
return theme;
}
//# sourceMappingURL=useThemeWithFlagsFont.js.map
;