{"id":15154707,"url":"https://github.com/1mehdifaraji/react-native-switch-ios","last_synced_at":"2026-01-19T09:01:46.697Z","repository":{"id":168048539,"uuid":"618297817","full_name":"1mehdifaraji/react-native-switch-ios","owner":"1mehdifaraji","description":"React native iOS switch component ","archived":false,"fork":false,"pushed_at":"2023-06-05T19:14:56.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-11-27T09:49:59.649Z","etag":null,"topics":["android","ios","react","react-js","react-native","react-native-switch","reactjs","switch"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/react-native-switch-ios","language":"JavaScript","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/1mehdifaraji.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-03-24T07:00:47.000Z","updated_at":"2025-11-05T02:14:22.000Z","dependencies_parsed_at":"2023-07-09T21:45:33.459Z","dependency_job_id":null,"html_url":"https://github.com/1mehdifaraji/react-native-switch-ios","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"62f6ffd8f11a836e1f0fccb4187de68847280b2b"},"previous_names":["1mehdifaraji/react-native-switch-ios"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/1mehdifaraji/react-native-switch-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1mehdifaraji%2Freact-native-switch-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1mehdifaraji%2Freact-native-switch-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1mehdifaraji%2Freact-native-switch-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1mehdifaraji%2Freact-native-switch-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1mehdifaraji","download_url":"https://codeload.github.com/1mehdifaraji/react-native-switch-ios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1mehdifaraji%2Freact-native-switch-ios/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28565001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T08:53:44.001Z","status":"ssl_error","status_checked_at":"2026-01-19T08:52:40.245Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","ios","react","react-js","react-native","react-native-switch","reactjs","switch"],"created_at":"2024-09-26T18:00:26.653Z","updated_at":"2026-01-19T09:01:46.680Z","avatar_url":"https://github.com/1mehdifaraji.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-switch-ios\n\nReact native iOS switch component that can be used in android and iOS projects with active and inactive color customization and cool iOS toggle animation .\n\n### Preview\n\n\n\u003cimg align=top src=\"https://user-images.githubusercontent.com/63982703/227421863-4c8937ef-8318-498e-b2db-8167e1d78011.gif\" width=\"300\" height=\"600\" /\u003e  \n\n### Installation\n\n\n```sh\n$ npm install --save react-native-switch-ios\n```\n\nor\n\n```sh\nyarn add react-native-switch-ios\n```\n\nor\n\n```sh\npnpm add react-native-switch-ios\n```\n\n### Usage\n\n```javascript\nimport { useState } from \"react\";\nimport { Switch } from \"react-native-switch-ios\";\n\nexport const App = () =\u003e {\n  const [toggle, setToggle] = useState(false);\n  return (\n      \u003cSwitch\n         inactiveBgColor=\"#7d7d7d\"\n         activeBgColor=\"#34c759\"\n         isOn={toggle}\n         onToggle={() =\u003e setToggle((prev) =\u003e !prev)} \n      /\u003e\n  )\n};\n```\n## Developer\n\n[@1mehdifaraji](https://github.com/1mehdifaraji)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1mehdifaraji%2Freact-native-switch-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1mehdifaraji%2Freact-native-switch-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1mehdifaraji%2Freact-native-switch-ios/lists"}