import { Motion } from '@legendapp/motion' import { Pressable, View } from 'react-native' import { Easing } from 'react-native-reanimated' import { Palette } from '../styles' import { LinearGradient } from './LinearGradient/LinearGradient' export default ({ value, setValue, containerStyle = {} }) => { const currentColor = value ? ['#F94697', '#7023F7'] : ['#8C8C8C', '#8C8C8C'] const switchHeight = 28 const internalMargin = 2 const itemSize = switchHeight - internalMargin * 2 return ( setValue(!value)}> ) }