import { PixelRatio } from 'react-native' ; export const remToPixels = ( rem ) : number => PixelRatio . getFontScale ( ) * 16 * Number ( rem . replace ( 'rem' , '' ) . replace ( 'em' , '' ) ) + 0.000001 ;