import { StyleSheet , TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface TranslationListStyles { source_container : ViewStyle ; source_left : ViewStyle ; source_text : TextStyle ; } export class TranslationListResponsiveStyles extends ResponsiveStyleSheet < TranslationListStyles > { public baseStyles ( scaleByFactor ) { return { source_container : { paddingHorizontal : scaleByFactor ( 16 ) , paddingVertical : scaleByFactor ( 8 ) , flexDirection : 'row' , alignItems : 'center' , justifyContent : 'space-between' , borderTopWidth : StyleSheet . hairlineWidth , borderBottomWidth : StyleSheet . hairlineWidth , } , source_left : { flexDirection : 'row' , alignItems : 'center' , } , source_text : { fontSize : scaleByFactor ( 14 ) , } , } ; } public lightStyles ( ) { return { source_container : { backgroundColor : config . styles . light . secondaryBackgroundColor , borderTopColor : config . styles . light . primaryBorderColor , borderBottomColor : config . styles . light . primaryBorderColor , } , source_text : { color : config . styles . light . primaryTextColor , } , } ; } public darkStyles ( ) { return { source_container : { backgroundColor : config . styles . dark . secondaryBackgroundColor , borderTopColor : config . styles . dark . primaryBorderColor , borderBottomColor : config . styles . dark . primaryBorderColor , } , source_text : { color : config . styles . dark . primaryTextColor , } , } ; } } export const translationListResponsiveStyles = new TranslationListResponsiveStyles ( ) ;