文件名称:react-native-toggle-element:React Native的开关切换组件。 您可以添加标题,图标,修改切换按钮的组件
文件大小:13KB
文件格式:ZIP
更新时间:2024-05-19 01:22:42
toggle-switches toggle togglebutton trackbar-style JavaScript
React-Native-Toggle元素 安装 yarn add react-native-toggle-element # or with npm npm install react-native-toggle-element 用法 初始值 import React , { useState } from 'react' ; import Toggle from 'react-native-toggle-element' ; const [ toggleValue , setToggleValue ] = useState ( false ) ; 切换默认组件 < Toggle xss=removed xss=removed xss=removed> setToggleValue ( val ) } / > 切换左标题 < Toggle value = {
【文件预览】:
react-native-toggle-element-master
----.eslintrc(99B)
----package.json(1KB)
----src()
--------__test__()
--------index.js(90B)
--------toggle.js(10KB)
----LICENSE(1KB)
----.github()
--------ISSUE_TEMPLATE()
--------FUNDING.yml(639B)
----README.md(9KB)
----.eslintignore(17B)
----babel.config.js(77B)
----.circleci()
--------config.yml(761B)
----.editorconfig(114B)