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

https://github.com/lucasgabrieldeaa/react-native-animated-switch

Repository with a simple implementation using animations and typescript to built a animated switch, or toggle component
https://github.com/lucasgabrieldeaa/react-native-animated-switch

animations react-native typescript

Last synced: 2 months ago
JSON representation

Repository with a simple implementation using animations and typescript to built a animated switch, or toggle component

Awesome Lists containing this project

README

          

# react-native-animated-switch

This repo contains a implementation of a native switch using `react-native-animated`, and `typescript` for
toggle between aplication's themes, using **ThemeProvider** from `styled-components`.

Based on [React Native Reanimated Switch](https://medium.com/timeless/react-native-reanimated-switch-83c331af7877)

**Installation**

```
// Downloading the project
git clone https://github.com/lucasGabrielDeAA/react-native-animated-switch.git

cd react-native-animated-switch

// Installing dependencies
yarn

// FOR IOS's environment
cd ios && pod install && cd .. && yarn ios

// For Android's environment
yarn android
```

![Dark mode screenshot](/images/dark-mode.png)
![Light mode screenshot](/images/light-mode.png)