View difference between Paste ID: qMfDBzeG and reuJbKRF
SHOW: | | - or go back to the newest paste.
1
// See https://www.framer.com/api/data/
2
import { Data, Override } from "framer"
3
4
5
// This has to be an object, it looks like in Framer you have to use a Data object
6
// What you did may work under other conditions, but this is probably the easiest way to go about it
7
const data = Data({
8
    // whatever values you had
9
    background: { r: 255, g: 255, b: 255, a: 1 }
10
})
11
12
13
onTap = () => {
14
    // rest of your stuff
15
    data.background = { r: 255, g: 255, b: 255, a: 1 }
16
}
17
18
19
// In the part where you initialized the background:
20
21
backround: data.background