-
-
-
-
css-font:解析或字符串化CSS字体
... 或字符串化CSS字符串。
用法
var font = require ( 'css-font' ) ;
var obj = font . parse ( 'small-caps 1rem/1.2 " ... '1rem',
lineHeight: 1.2,
variant: 'small-caps',
family: ['Roboto Condensed', 'sans-serif']
}
*/
font . stringify ( obj )
// '1rem "Roboto Con
-
-
-
react-native-font-list:一个基本的React Native模块,它公开了操作系统的已安装字体和可用字体系列
react-native-font-list
一个基本的React Native模块,它公开了操作系统的已安装字体 ... get() 。
安装
添加依赖
纱:
yarn add react-native-font-list
NPM:
npm install react-native-font-list ... amp; pod install
而已! 准备使用FontList。
用法
// import
import FontList from 'react-native-font-list' ;
// samp
-
rn-sensitive-font:一种神奇而简单的方法,用于响应fontSize(基于屏幕宽度)以支持所有尺寸的设备
... 支持所有尺寸的设备。
如何安装
yarn add rn-responsive-font
npm install rn-responsive-font --save
在不同设备上的外观
使用范例
import ... from 'react';
import { Text, View } from 'react-native';
import resp from "rn-responsive-font";
class App extends Component {
render() {
-
-
-
-