Sure.
Instead of creating an interaction inside the component, you need to create a variable.
For example: I’ve created a string variable with the name: Status and the value: Resting, then I’ve applied this variable to the component from the prototype settings, selecting the trigger “while pressing” and the action “set variable” > onPress, from the variables previously set.
Then I created a second interaction, a double action: one to change the state and the other to open the overlay and voila!
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.