Skip to content

Instantly share code, notes, and snippets.

View amit13091992's full-sized avatar

Amit Pandya amit13091992

View GitHub Profile
@amit13091992
amit13091992 / CustomToggleSwitch.js
Created March 1, 2021 07:53
React-Native Custom Toggle Switch Design same for Android and iOS.
import * as React from 'react';
import { Animated, Easing, StyleSheet, TouchableOpacity, View, } from 'react-native';
interface Props {
onColor: string;
offColor: string;
onToggle: () => void;
style: object;
isOn: boolean;
}