import { TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface VocabularyDetailTitleStyles { container : ViewStyle ; vocabulary_text : TextStyle ; } export class VocabularyDetailTitleResponsiveStyles extends ResponsiveStyleSheet < VocabularyDetailTitleStyles > { public baseStyles ( scaleByFactor ) { return { container : { paddingHorizontal : scaleByFactor ( 16 ) , paddingTop : scaleByFactor ( 26 ) , paddingBottom : scaleByFactor ( 8 ) , } , vocabulary_text : { fontSize : scaleByFactor ( 25 ) , textAlign : 'center' , fontWeight : 'bold' , } , } ; } public lightStyles ( ) { return { vocabulary_text : { color : config . styles . light . primaryTextColor , } , } ; } public darkStyles ( ) { return { vocabulary_text : { color : config . styles . dark . primaryTextColor , } , } ; } } export const vocabularyDetailTitleResponsiveStyles = new VocabularyDetailTitleResponsiveStyles ( ) ;