8000 Can't use directive (@layer base) with the latest version · Issue #1491 · nativewind/nativewind · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Can't use directive (@layer base) with the latest version #1491
Open
@Yunhh-Hahn

Description

@Yunhh-Hahn

Describe the bug
I used @layer base to define a property that applied to all React Native "Text" component and it didn't apply

Reproduction
https://github.com/[Yunhh-Hahn/nativewind-directive-expo-issue](https://github.com/Yunhh-Hahn/nativewind-directive-expo-issue)

  • npx rn-new@latest --nativewind.

Expected behavior
Should apply like the usual case

Additional context

  • Nothing else has been modified after running the template creation command (npx rn-new@latest --nativewind), aside from adding a @layer base and an extra Text component as children in ScreenContent in App.tsx
  • Haven't test with other directives
  • Regular tailwind class still work as intended, standalone or in conjuction with the directive
  • !important has been tried in the @layer base to see but the same result occurs, nothing is being applied.
  • Put Text component outside of ScreenContent to see if being a child affect anything, also the same result, nothing is applied.
  • Every attempt to discern the problem was done using Expo Go with reinstall node module, package-lock and clear cache before rerun using Expo SDK 53, nativewind version at 4.1.23 and latest, tailwind css at 3.4.17. and 3.4.0. Same result every time, nothing is applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0