Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // See https://www.framer.com/api/data/
- import { Data, Override } from "framer"
- // This has to be an object, it looks like in Framer you have to use a Data object
- // What you did may work under other conditions, but this is probably the easiest way to go about it
- const data = Data({
- // whatever values you had
- background: { r: 255, g: 255, b: 255, a: 1 }
- })
- onTap = () => {
- // rest of your stuff
- data.background = { r: 255, g: 255, b: 255, a: 1 }
- }
- // In the part where you initialized the background:
- backround: data.background
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement