import { TextStyle , ViewStyle } from 'react-native' ; import { config } from '../../constants/config' ; import { ResponsiveStyleSheet , ScaleByFactor } from '../../utils/responsive' ; export interface NextButtonStyles { container : ViewStyle ; next_button_container : ViewStyle ; title_container : ViewStyle ; title : TextStyle ; subtitle : TextStyle ; } export class NextButtonResponsiveStyles extends ResponsiveStyleSheet < NextButtonStyles > { public baseStyles ( scaleByFactor ) { return { container : { } , next_button_container : { paddingHorizontal : scaleByFactor ( 16 ) , paddingVertical : scaleByFactor ( 12 ) , } , title_container : { paddingVertical : scaleByFactor ( 10 ) , } , title : { textAlign : 'center' , fontSize : scaleByFactor ( 14 ) , } , subtitle : { textAlign : 'center' , fontSize : scaleByFactor ( 14 ) , } , } ; } public lightStyles ( ) { return { title : { color : config . styles . light . primaryTextColor , } , subtitle : { color : config . styles . light . secondaryTextColor , } , } ; } public darkStyles ( ) { return { title : { color : config . styles . dark . primaryTextColor , } , subtitle : { color : config . styles . dark . secondaryTextColor , } , } ; } } export const nextButtonResponsiveStyles = new NextButtonResponsiveStyles ( ) ;