An open API service indexing awesome lists of open source software.

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

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)