https://github.com/1mehdifaraji/react-native-switch-ios
React native iOS switch component
https://github.com/1mehdifaraji/react-native-switch-ios
android ios react react-js react-native react-native-switch reactjs switch
Last synced: 5 months ago
JSON representation
React native iOS switch component
- Host: GitHub
- URL: https://github.com/1mehdifaraji/react-native-switch-ios
- Owner: 1mehdifaraji
- License: mit
- Created: 2023-03-24T07:00:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-05T19:14:56.000Z (about 3 years ago)
- Last Synced: 2025-11-27T09:49:59.649Z (7 months ago)
- Topics: android, ios, react, react-js, react-native, react-native-switch, reactjs, switch
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-native-switch-ios
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-native-switch-ios
React native iOS switch component that can be used in android and iOS projects with active and inactive color customization and cool iOS toggle animation .
### Preview
### Installation
```sh
$ npm install --save react-native-switch-ios
```
or
```sh
yarn add react-native-switch-ios
```
or
```sh
pnpm add react-native-switch-ios
```
### Usage
```javascript
import { useState } from "react";
import { Switch } from "react-native-switch-ios";
export const App = () => {
const [toggle, setToggle] = useState(false);
return (
setToggle((prev) => !prev)}
/>
)
};
```
## Developer
[@1mehdifaraji](https://github.com/1mehdifaraji)