📌  相关文章
📜  react native responsive font - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.703000             🧑  作者: Mango

代码示例1
import { Dimensions } from 'react-native';

const { width, **fontScale** } = Dimensions.get("window");

const styles = StyleSheet.create({
    fontSize: idleFontSize / **fontScale**,
});