【文件属性】:
文件名称:react-native-backdrop:用于本机React的背景组件
文件大小:247KB
文件格式:ZIP
更新时间:2021-03-09 18:13:12
JavaScript
React本机背景
使用针对Android和iOS的材料指南构建的React Native Backdrop组件
| | |
安装
$ npm install react-native-backdrop --save
用法
import { Backdrop } from "react-native-backdrop" ;
const App = ( ) => {
const [ visible , setVisible ] = useState ( false ) ;
const handleOpen = ( ) => {
setVisible ( true ) ;
} ;
const handleClose = ( ) => {
setVisible ( false ) ;
} ;
return (
< >
< View s
【文件预览】:
react-native-backdrop-master
----README.md(5KB)
----.vscode()
--------launch.json(417B)
----package.json(515B)
----src()
--------Backdrop.js(6KB)
--------styles.js(499B)
----index.js(61B)
----example()
--------ios()
--------.gitignore(817B)
--------Backdrop.js(8KB)
--------android()
--------.gitattributes(16B)
--------package.json(643B)
--------index.js(183B)
--------.buckconfig(114B)
--------.flowconfig(3KB)
--------app.json(75B)
--------.watchmanconfig(2B)
--------App.js(2KB)
--------babel.config.js(77B)
--------metro.config.js(300B)
--------.eslintrc.js(74B)
--------.prettierrc.js(120B)
--------package-lock.json(325KB)
----package-lock.json(84B)