Open trevorpfiz opened 2 weeks ago
@trevorpfiz From a quick look, I think the "animate-spin" class might be the issue. In the iconWithClassName
function, only color
and opacity
are cssInteroped.
What if you tried:
<View className={cn(isSyncPending && "animate-spin")}
<RefreshCw className={cn("text-foreground")} size={24} />
</View>
Or update the iconWithClassName
to accept animate-spin (I'm not sure how to do that)?
@trevorpfiz From a quick look, I think the "animate-spin" class might be the issue. In the
iconWithClassName
function, onlycolor
andopacity
are cssInteroped.What if you tried:
<View className={cn(isSyncPending && "animate-spin")} <RefreshCw className={cn("text-foreground")} size={24} /> </View>
Or update the
iconWithClassName
to accept animate-spin (I'm not sure how to do that)?
wrapping in a View
works, thanks!
actually, this is not working on "nativewind": "4.1.6"
. animate-spin
is not working in a Button
? not sure what allowed it to work before.
Error: Couldn't find a navigation context. Have you wrapped your app with 'NavigationContainer'? See https://reactnavigation.org/docs/getting-started for setup instructions.
This error is located at:
in CssInterop.View (created by HomeHeader)
@trevorpfiz To my knowledge, the newest version of NativeWind is 4.1.10
. Can you try that?
@trevorpfiz To my knowledge, the newest version of NativeWind is
4.1.10
. Can you try that?
It gives the same error. You can see in this repro: https://github.com/trevorpfiz/starter-base-repro
Describe the bug this works:
this breaks the
text-foreground
:To Reproduce Steps to reproduce the behavior:
Expected behavior I would expect the
text-foreground
to be applied and styles not to break when using a conditional.Platform (please complete the following information):
Additional context I can work on a repro soon. Thanks!