react-native-use-dimensions:React挂钩的集合,用于使用屏幕,窗口或两者的尺寸

时间:2021-05-02 09:46:07
【文件属性】:
文件名称:react-native-use-dimensions:React挂钩的集合,用于使用屏幕,窗口或两者的尺寸
文件大小:386KB
文件格式:ZIP
更新时间:2021-05-02 09:46:07
react hooks react-native dimensions functional-components 描述 这个Node.js包是React挂钩的集合,用于使用屏幕,窗口或两者的尺寸。 安装 安装了,只需运行以下命令即可将该包添加到您的项目中。 npm install react-native-use-dimensions 用法 查看以下示例或 。 该包装带有三个挂钩: useScreenDimensions-屏幕尺寸 useWindowDimensions-窗口尺寸,可以 useDimensions-屏幕和窗口尺寸 import React from "react" ; import { Text } from "react-native" ; import useDimensions , { useScreenDimensions , useWindowDimensions } from "react-native-use-dimensions" ; const Scre
【文件预览】:
react-native-use-dimensions-master
----.github()
--------workflows()
----yarn.lock(285KB)
----.eslintrc.js(754B)
----src()
--------index.ts(2KB)
----babel.config.js(76B)
----tsconfig.json(459B)
----LICENSE(1KB)
----assets()
--------img()
----jest.config.js(197B)
----README.md(2KB)
----docs()
--------index.html(12KB)
--------.nojekyll(0B)
--------modules()
--------assets()
--------globals.html(8KB)
----tests()
--------index.tsx(2KB)
----.gitignore(915B)
----.prettierrc.js(21B)
----package.json(2KB)

网友评论