import { StyleSheet , TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface HeatMapDataPointScreenStyles { screen : ViewStyle ; container : ViewStyle ; title : TextStyle ; value : TextStyle ; } export class HeatMapDataPointScreenResponsiveStyles extends ResponsiveStyleSheet < HeatMapDataPointScreenStyles > { public baseStyles ( scaleByFactor ) { return { screen : { flex : 1 , } , container : { paddingVertical : scaleByFactor ( 16 ) , paddingHorizontal : scaleByFactor ( 16 ) , borderTopWidth : StyleSheet . hairlineWidth , } , title : { fontSize : scaleByFactor ( 14 ) , textAlign : 'center' , } , value : { fontSize : scaleByFactor ( 28 ) , paddingTop : scaleByFactor ( 4 ) , textAlign : 'center' , fontWeight : 'bold' , } , } ; } public lightStyles ( ) { return { container : { borderTopColor : config . styles . light . primaryBorderColor , } , title : { color : config . styles . light . secondaryTextColor , } , value : { color : config . styles . light . primaryTextColor , } , } ; } public darkStyles ( ) { return { container : { borderTopColor : config . styles . dark . primaryBorderColor , } , title : { color : config . styles . dark . secondaryTextColor , } , value : { color : config . styles . dark . primaryTextColor , } , } ; } } export const heatMapDataPointScreenResponsiveStyles = new HeatMapDataPointScreenResponsiveStyles ( ) ;