Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

`active:` not working with `Pressable`'s `testOnly_pressed`

Abierto
#240 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 3 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
react-native, typescript
Área
frontend, mobile

Línea de trabajo

Start by running the linked reproduction at pvinis/nativewind-pressable-active and confirm that a Pressable with active:bg-red-500 ignores the testOnly_pressed prop. Then find where the library decides whether the active variant applies, and check whether it reads the pressed state that Pressable reports at runtime. Done means the active style also applies when testOnly_pressed is set, with the existing tap behaviour unchanged.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

deferred (post-5.0)

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

screenshot-2025-11-06-17 53 41@2x

but its like

screenshot-2025-11-06-17 53 32@2x

Additional context
Add any other context about the problem here. If applicable, add screenshots to help explain your problem.

Lenguaje dominante
TypeScript
Estrellas
166
Forks
45
Merge medio
13 d 14 h
PR fusionados (30 d)
1

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nativewind/react-native-css

Todos los issues de nativewind/react-native-css

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.