UNPKG

react-native-ethiopian-calendar

Version:

A react native calendar component which is mainly intended for applications which require Ethiopian calendar.

33 lines (30 loc) 871 B
import { StyleSheet, TextStyle, ViewStyle } from 'react-native'; import * as defaultStyle from '../../../styles'; import type { Theme } from '../../../types'; export const makeStyle = (theme: Theme = {}) => { const mergedStyles = { ...defaultStyle, ...theme }; return StyleSheet.create({ container: { width: 50, height: 25, borderRadius: 20, borderWidth: 1, borderColor: mergedStyles.switchButtonColor, flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between', paddingHorizontal: 4, marginVertical: 4, } as ViewStyle, toggleCircle: { width: 18, height: 18, backgroundColor: mergedStyles.switchButtonColor, borderRadius: 10, } as ViewStyle, text: { color: mergedStyles.switchButtonColor, fontSize: 14, } as TextStyle, }); };