Describe the bug
active: doesnt work with testOnly_pressed. Specifically, if I have a Pressable with bg-green active:bg-red-500, when I tap that button, it will change color. But if I pass the testOnly_pressed prop to it, to simulate being pressed, then the color will not be the red one.
This makes it hard to have storybook for buttons.
Reproduction
https://github.com/pvinis/nativewind-pressable-active
Expected behavior
should be like
but its like
Additional context
Add any other context about the problem here. If applicable, add screenshots to help explain your problem.
Describe the bug
active:doesnt work withtestOnly_pressed. Specifically, if I have a Pressable withbg-green active:bg-red-500, when I tap that button, it will change color. But if I pass thetestOnly_pressedprop to it, to simulate being pressed, then the color will not be the red one.This makes it hard to have storybook for buttons.
Reproduction
https://github.com/pvinis/nativewind-pressable-active
Expected behavior
should be like
but its like
Additional context
Add any other context about the problem here. If applicable, add screenshots to help explain your problem.