SHARE
TWEET

Untitled

a guest Jun 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. return (
  2.     <Frame
  3.         height={50}
  4.         width={80}
  5.         center
  6.         radius={25}
  7.         onTap={flipSwitch}
  8.         variants={{
  9.             off: { background: "#BBBBBB" },
  10.             on: { background: "#0070DF" },
  11.         }}
  12.         initial={state.isOn ? "on" : "off"}
  13.     >
  14.         <Frame
  15.             size={46}
  16.             top={2}
  17.             left={2}
  18.             radius={"100%"}
  19.             background="#FFFFFF"
  20.             variants={{
  21.                 off: { x: 0 },
  22.                 on: { x: 30 },
  23.             }}
  24.         />
  25.     </Frame>
  26. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top