react native responsive fontSize
v0.5.1

¿Use esta biblioteca si tiene un pequeño problema con el tamaño de la fuente?
yarn add react-native-responsive-fontsize
# or
npm install react-native-responsive-fontsize --save| iPhone SE | iPhone X |
|---|---|
| argumentos | Descripción | |
|---|---|---|
| Rfpercentage | Porcentaje: Número | El tamaño de la fuente se calcula como un porcentaje de la altura ( width en el modo de paisaje) del dispositivo. |
| Rfvalue | Valor: ¿Número, estándares de atención?: Número | El tamaño de la fuente se calcula en función de estándares de la vida y valor aprobado |
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 ) ,
} ,
} ) ; lanzamientos
test code