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

Platform colors wont work (reanimation error) when used with transitions

Abierto
#1,475 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
22/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Tranquilo
Stack tecnológico
javascript, react-native, tailwindcss
Área
mobile-dev

Línea de trabajo

The failure is a Reanimated worklet error when a platformColor from tailwind.config is animated through a transition-property class. Start by reproducing with the stackblitz linked in the issue on an iOS target, then trace how platform colors are resolved in the Tailwind config and the transition handling in the nativewind runtime. Done means the transition runs on iOS without the non-worklet 'removeListener' error.

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

Descripción

needs investigation needs reproduction

Describe the bug
If you define a color in the tailwind.config.ts e.g. platformColor("systemRed") as shown [here] (https://www.nativewind.dev/customization/colors) and you have an a element that has a classname that uses a transition property you will get the following error from react-reanimated ReanimatedError: [Reanimated] Tried to synchronously call a non-worklet function 'removeListener' on the UI thread.. I understand that transitions are still experimental so I wanted to put this on your radar.
Reproduction
I cant exactly reproduce this on stackblitz as it needs to be running in an ios enviroment but I have put together a stacblitz demo here so you can better understand the code and the issue.

Expected behavior
I would expect the platform color transpiled ahead of time so it would not need to be called during the animtion in the ui thread and thus not break.
Additional context
I'm using expo 52.0.23 with nativewind 4.1.3 and react-native 0.76.5 with react 18.

Lenguaje dominante
JavaScript
Estrellas
8.1k
Forks
409
Merge medio
1 d 15 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/nativewind

Todos los issues de nativewind/nativewind

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.