【文件属性】:
文件名称:react-native-duo-toggle-switch:完全可定制的 React Native 动画双切换开关
文件大小:408KB
文件格式:ZIP
更新时间:2021-08-04 19:52:18
JavaScript
安装
添加依赖:
npm i react - native - duo - toggle - switch
对等依赖
重要的! 你需要安装它们
"react" : ">= 16.x.x" ,
"react-native" : ">= 0.55.x" ,
"react-native-androw" : ">= 0.0.34" ,
"react-native-material-ripple" : ">= 0.9.1"
用法
进口
import DuoToggleSwitch from "react-native-duo-toggle-switch" ;
基本用法
< DuoToggleSwitch>
配置 - 道具
财产
类型
默认
描述
宽度
数字
细绳
40%
高度
数字
细绳
35
按钮宽度
数字
细绳
85
按钮高度
数字
细绳
35
边界半径
数字
50
改
【文件预览】:
react-native-duo-toggle-switch-master
----.gitignore(826B)
----README.md(4KB)
----.github()
--------dependabot.yml(125B)
----LICENSE(1KB)
----.gitattributes(16B)
----package.json(811B)
----example()
--------ios()
--------.gitignore(813B)
--------android()
--------__tests__()
--------.gitattributes(16B)
--------package.json(753B)
--------index.js(183B)
--------.buckconfig(114B)
--------.flowconfig(2KB)
--------app.json(51B)
--------.watchmanconfig(2B)
--------App.js(442B)
--------babel.config.js(77B)
--------metro.config.js(300B)
--------yarn.lock(295KB)
--------.eslintrc.js(74B)
----.npmignore(85B)
----lib()
--------src()
----.eslintrc.js(637B)
----assets()
--------Screenshots()
--------logo.png(15KB)