react-native-switchbutton:提供IOS样式的跨平台的Switch组件

时间:2021-05-14 14:39:05
【文件属性】:
文件名称:react-native-switchbutton:提供IOS样式的跨平台的Switch组件
文件大小:283KB
文件格式:ZIP
更新时间:2021-05-14 14:39:05
input button switch switchbutton bool react-native-switchbutton 一个IOS样式的跨平台(cross-platform)平台的switch组件 第一步 工程目录下运行: npm install --save react-native-switchbutton 或者(已经安装了yarn): yarn add react-native-switchbutton 第二部使用 在工程中导入: import Switch from 'react-native-switchbutton'; //使用方法和RN官方的Switch类似, 属性 View props... disabled bool 如果为true,这个组件不能进行交互。 onValueChange function 当值改变的时候调用此回调函数,参数为新的值。 value bool 表示此开关是否打开。默认为false(关闭状态)
【文件预览】:
react-native-switchbutton-master
----.gitignore(278B)
----1.gif(210KB)
----package.json(695B)
----src()
--------SwitchButton.js(4KB)
--------getPlatformElevation.ios.js(572B)
--------getPlatformElevation.android.js(97B)
----LICENSE(11KB)
----README.md(2KB)
----Switch.js(1KB)
----.idea()
--------workspace.xml(24KB)
--------vcs.xml(180B)
--------inspectionProfiles()
--------react-native-switchbutton.iml(458B)
--------modules.xml(302B)
----example()
--------.gitignore(763B)
--------.babelrc(34B)
--------.flowconfig(1KB)
--------package.json(496B)
--------.buckconfig(114B)
--------android()
--------.watchmanconfig(2B)
--------ios()
--------index.js(123B)
--------__tests__()
--------App.js(1KB)
--------.gitattributes(16B)
--------app.json(51B)
--------yarn.lock(174KB)
----.npmignore(19B)

网友评论