import { TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface AddEditVocabularyScreenStyles { screen : ViewStyle ; scrollview : ViewStyle ; preview_container : ViewStyle ; tip_container : ViewStyle ; tip : TextStyle ; bold : TextStyle ; } export class AddEditVocabularyScreenResponsiveStyles extends ResponsiveStyleSheet < AddEditVocabularyScreenStyles > { public baseStyles ( scaleByFactor ) { return { screen : { flex : 1 , } , scrollview : { flex : 1 , } , preview_container : { flexGrow : 1 , paddingTop : scaleByFactor ( 16 ) , alignSelf : 'stretch' , justifyContent : 'center' , } , tip_container : { paddingHorizontal : scaleByFactor ( 16 ) , paddingVertical : scaleByFactor ( 14 ) , } , tip : { textAlign : 'center' , fontSize : scaleByFactor ( 13 ) , } , bold : { fontWeight : 'bold' , } , } ; } public lightStyles ( ) { return { tip : { color : config . styles . light . secondaryTextColor , } , } ; } public darkStyles ( ) { return { tip : { color : config . styles . dark . secondaryTextColor , } , } ; } } export const addEditVocabularyScreenResponsiveStyles = new AddEditVocabularyScreenResponsiveStyles ( ) ;