Answers for "font style change the large in react native"

1

font weight react native

subWarningText: {
    color: '#5460C8',
    fontWeight: Platform.OS === 'android' ? 'normal' : '400',
    fontSize: 14 / fontScale,
    marginLeft: scaleWidth(24),
    marginRight: scaleWidth(10),
    marginBottom: scaleHeight(276),
  },
Posted by: Guest on May-19-2021
0

responsive font size react native

import { Dimensions, Platform, PixelRatio } from 'react-native';

const {
  width,
  height,
} = Dimensions.get('window');

export function normalize(size, multiplier = 2) {
  const scale = (width / height) * multiplier;

  const newSize = size * scale;

  return Math.round(PixelRatio.roundToNearestPixel(newSize));
}
Posted by: Guest on December-17-2021

Code answers related to "font style change the large in react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language