Open lapse12 opened 2 weeks ago
sry, I justI forgot to leave the URL.
this is the minimal reproduction: https://github.com/lapse12/reproduction-of-nativewind-bug
This does not look like a NativeWind issue (more to do with networking on your machine). Do the templates work as expected before you add NativeWind?
Yes, everything is normal except that Tailwind is not working.
I cloned your repro but I cannot reproduce the warnings you have reported.
However I can see on line 20 of app/(tabs)/index.ts
you have added a className
to <ThemedText />
, so maybe your expecting that to work? The <ThemedText />
is a custom component that wraps <Text />
, however it is not passing the className
prop to <Text />
- hence it won't be styled.
If I pass the className
prop correctly or just use <Text />
directly the styles work as expected.
As for your original issue, I'm still confused and feel that you need to explain the problem more clearly. "Everything is working" is a very broad term. I also don't know if "tailwind is not working" relates to your original issue about the warning, or simply the misuse of className
prop.
What I need to concise information, basically instructions on how to reproduce the problem. For example
Describe the bug I strictly followed the document for the project initialization, but... As shown in the figures, "Disconnected from Metro (1001: "Stream end encountered")."
Reproduction
I'd tried the following templates:
npx create-expo-stack@latest --nativewind --expo-router
(which increate-expo-stack
branch)and another which is
npx create-expo-app@latest
(which inmain
branch)The issue seems to originate from the package "event-target-shim".