{"id":25670150,"url":"https://github.com/mmusaib/react-native-toggle-input","last_synced_at":"2025-04-23T02:27:06.758Z","repository":{"id":58413929,"uuid":"530993810","full_name":"mmusaib/react-native-toggle-input","owner":"mmusaib","description":"Customized toggle button input for react native and expo","archived":false,"fork":false,"pushed_at":"2024-09-18T16:02:49.000Z","size":29,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-21T00:35:43.471Z","etag":null,"topics":["android","easy-toggle-android","easy-toggle-ios","expo","expo-toggle","expo-toggle-button","expo-toggle-switch","ios","ios-toggle-button","ios-toggle-switch","react","react-native","react-native-custom-toggle-button","react-native-toggle","react-native-toggle-button","react-native-toggle-switch","web"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-toggle-input","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mmusaib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"lfx_crowdfunding":null,"polar":null,"buy_me_a_coffee":null,"thanks_dev":null,"custom":null}},"created_at":"2022-08-31T08:18:56.000Z","updated_at":"2024-09-18T16:02:53.000Z","dependencies_parsed_at":"2024-09-23T04:33:41.931Z","dependency_job_id":"d62c62c5-c03d-406c-9baa-1b55957b942f","html_url":"https://github.com/mmusaib/react-native-toggle-input","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":"0.27586206896551724","last_synced_commit":"a115a153678aaf30dea36ed1f2a0cebe00167c8f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmusaib%2Freact-native-toggle-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmusaib%2Freact-native-toggle-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmusaib%2Freact-native-toggle-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmusaib%2Freact-native-toggle-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmusaib","download_url":"https://codeload.github.com/mmusaib/react-native-toggle-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250356561,"owners_count":21417108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","easy-toggle-android","easy-toggle-ios","expo","expo-toggle","expo-toggle-button","expo-toggle-switch","ios","ios-toggle-button","ios-toggle-switch","react","react-native","react-native-custom-toggle-button","react-native-toggle","react-native-toggle-button","react-native-toggle-switch","web"],"created_at":"2025-02-24T11:30:39.311Z","updated_at":"2025-04-23T02:27:01.746Z","avatar_url":"https://github.com/mmusaib.png","language":"TypeScript","readme":"|                          | |  |   |   |\n| --------------------------------------- | -------- | ---------- |---------- |---------- |\n| \u003ca href=\"https://www.npmjs.com/package/react-native-toggle-input\"\u003e![NPM VERSION](https://img.shields.io/npm/v/react-native-toggle-input?style=for-the-badge)\u003c/a\u003e | \u003ca href=\"https://www.npmjs.com/package/react-native-toggle-input\"\u003e![NPM WEEKLY DOWNLOADS](https://img.shields.io/npm/dw/react-native-toggle-input?color=%232CA215\u0026label=WEEKLY%20DOWNLOADS\u0026style=for-the-badge)\u003c/a\u003e | \u003ca href=\"https://github.com/mmusaib/react-native-toggle-input/stargazers\"\u003e![GITHUB STAR](https://img.shields.io/github/stars/mmusaib/react-native-toggle-input?label=Give%20Us%20A%20Star\u0026style=for-the-badge)\u003c/a\u003e | \u003ca href=\"https://www.youtube.com/channel/UCSwIR2KBHiqiProH3Me8IZQ\"\u003e![YOUTUBE VIEWS](https://img.shields.io/youtube/channel/views/UCSwIR2KBHiqiProH3Me8IZQ?label=YOUTUBE%20VIEWS\u0026style=for-the-badge)\u003c/a\u003e | \u003ca href=\"https://www.npmjs.com/package/react-native-toggle-input\"\u003e![NPM LIFETIME DOWNLOADS](https://img.shields.io/npm/dt/react-native-toggle-input?color=%232CA215\u0026style=for-the-badge)\u003c/a\u003e\n\n\u003cbr\u003e\n\n\u003ch1 align=\"center\"\u003e\n  🔛 React Native Custom Toggle Input\n\u003c/h1\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n🟢 Customizable React Native Toggle Switch with easy to use props\"\n\n\u003ca href=\"https://twitter.com/_mmusaib\" target=\"_blank\"\u003e\n\u003cimg src=\"https://i.imgur.com/CAnbdwP.png\" width=\"250\" /\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n\n\u003cp align=\"center\"\u003e\n  \u003ckbd\u003e\n    \u003cimg\n      src=\"https://i.imgur.com/TFqRrYs.gif\"\n      title=\"Toggle Input Demo\"\n    \u003e\n  \u003c/kbd\u003e\n  \u003cbr\u003e\n  \u003cem\u003eToggle Input Demo\u003c/em\u003e\n\u003c/p\u003e\n\n\n\n\u003ch4\u003eCustomizable and \u003cb\u003eEasy\u003c/b\u003e to use toggle switch.\u003c/h4\u003e\n\n-   Use the color of your choice\n-   Use bordered or filled toggle switch upon your choice\n-   Works on all the platforms Android, Ios and Web in the same way\n-   Zero dependencies\n\n\n\n# Compatibility\n\n\n|  iOS  | Android | Web | Expo |\n--------|---------|-----|------|\n|  ✅  |    ✅    | ✅ |  ✅  |\n\n\n\n\n# 🔌 Installation\n\n```sh\n$ npm install react-native-toggle-input\n\n```\n\nOR\n\n```sh\n$ yarn add react-native-toggle-input\n```\n\n\n# 😎 Basic Usage\n```jsx\nimport Toggle from 'react-native-toggle-input'\n\nconst App = () =\u003e {\n\n  const [toggle, setToggle] = React.useState(false);\n  \n\n  return(\n    \u003cToggle toggle={toggle} setToggle={setToggle} /\u003e\n  )\n\n};\n```\n\n\nFor Live `Demo` [(Expo Snack)](https://snack.expo.dev/@mmusaib/react-native-toggle-input)\n\n# ⭐ Props\n| Name | Type | Description |\n| ---- | ---- | ----------- |\n| color | String | Color of the toggle switch (Optional)\n| size | Number | Size of the toggle switch (Optional)\n| filled | boolean | If you want to use filled toggle switch set it to true (Optional)\n| circleColor | String | Use the color you want to give to the circle inside swith (Required for filled switch)\n| toggle | boolean | Default value of the toggle switch (Required)\n| setToggle | Function | Pass the function that will be used to set toggle status (Required)\n| onTrue | Function | Pass the function that will executed after the switch has been turned on\n| onFalse | Function | Pass the function that will executed after the switch has been turned off\n\n\n# 😎 Advanced Usage\n```jsx\nimport Toggle from 'react-native-toggle-input'\n\nconst App = () =\u003e {\n\n  const [toggle, setToggle] = React.useState(false);\n  \n\n  return(\n    \u003cToggle \n        color={\"#4C956C\"}\n        size={30}\n        filled={true}\n        circleColor={\"white\"}\n        toggle={toggle}\n        setToggle={setToggle}\n    /\u003e\n  )\n\n};\n```\n\n\u003cp align=\"center\" \u003e\n  \u003ckbd\u003e\n    \u003cimg\n      src=\"https://i.imgur.com/6lzF8ux.gif\"\n      title=\"Toggle Input Filled Demo\"\n    \u003e\n  \u003c/kbd\u003e\n  \u003cbr\u003e\n  \u003cem\u003eToggle Input Filled Demo\u003c/em\u003e\n\u003c/p\u003e\n\n\n# ▶️ Watch Tutorial Video\n\n[![Watch video](https://i.imgur.com/3ovVT8T.png)](https://youtu.be/_MemajXfkMw\u0026t=15s)\n\n\nFor Live `Demo` [(Expo Snack)](https://snack.expo.dev/@mmusaib/react-native-toggle-input)\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmusaib%2Freact-native-toggle-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmusaib%2Freact-native-toggle-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmusaib%2Freact-native-toggle-input/lists"}