react native responsive fontSize
v0.5.1

Use esta biblioteca se você tiver um pequeno problema com o tamanho da fonte?
yarn add react-native-responsive-fontsize
# or
npm install react-native-responsive-fontsize --save| iPhone SE | iPhone X. |
|---|---|
| argumentos | Descrição | |
|---|---|---|
| RfPercentage | Porcentagem: Número | O tamanho da fonte é calculado como uma porcentagem da altura ( width no modo paisagem) do dispositivo. |
| RfValue | Valor: Número, StandardsCreenHeight?: Número | O tamanho da fonte é calculado com base no peso de padrões e no valor aprovado |
standardScreenHeight de RFValue680screen width import { RFPercentage , RFValue } from "react-native-responsive-fontsize" ;
const styles = StyleSheet . create ( {
welcome : {
fontSize : RFValue ( 24 , 580 ) // second argument is standardScreenHeight(optional),
textAlign : "center" ,
margin : 10 ,
} ,
instructions : {
textAlign : "center" ,
color : "#333333" ,
marginBottom : 5 ,
fontSize : RFPercentage ( 5 ) ,
} ,
} ) ; lançamentos
test code