import { TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface DueAndNewCountsStyles { container : ViewStyle ; counts : TextStyle ; highlighted_count : TextStyle ; } export class DueAndNewCountsResponsiveStyles extends ResponsiveStyleSheet < DueAndNewCountsStyles > { public baseStyles ( scaleByFactor ) { return { container : { paddingTop : scaleByFactor ( 12 ) , flexDirection : 'row' , alignItems : 'center' , justifyContent : 'center' , } , counts : { fontSize : scaleByFactor ( 15 ) , textAlign : 'center' , } , highlighted_count : { fontWeight : 'bold' , color : '#66BB6A' , } , } ; } public lightStyles ( ) { return { counts : { color : config . styles . light . secondaryTextColor , } , } ; } public darkStyles ( ) { return { counts : { color : config . styles . dark . secondaryTextColor , } , } ; } } export const dueAndNewCountsResponsiveStyles = new DueAndNewCountsResponsiveStyles ( ) ;