Skip to content

styled() breaks component behavior on Web (works on Native) #285

@Sanchitv3

Description

@Sanchitv3

Describe the bug
When wrapping a component with styled() from NativeWind v5, the component stops working on web, although it continues to work correctly on native platforms.

This was previously working in NativeWind v4 using cssInterop().

Reproduction
We’re seeing this issue while wrapping the Overlay primitive from gluestack-ui (used internally for Portal).
https://github.com/gluestack/gluestack-ui/tree/feat/nw-v5-alpha

Expected behavior

  • Portal should render and open correctly on web.
  • Behavior should match native.
  • Wrapping with styled() should not break functionality.

Additional context

  • This setup worked correctly in NativeWind v4 using cssInterop().

Metadata

Metadata

Assignees

Labels

ready for releaseAvailable as part of the latest nightly release but not yet available on npm

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions