Skip to content

nativewind not working with jsx-runtime transformed components #263

Closed

Description

@Alvi24

Describe the bug

export const Icon = (props: IconProps) => {
  return jsxs(Svg, {
    height: "18",
    width: "18",
    viewBox: "0 0 18 18",
    strokeWidth: "1.5",
    ...props,
    children: [
      /* @__PURE__ */ jsx(G, {
        fill: "currentColor",
        children: /* @__PURE__ */ jsx(Path, {
          d: "M2.75 9.25L6.75 14.25L15.25 3.75",
          stroke: "currentColor",
          strokeWidth: "1.5",
          strokeLinecap: "round",
          strokeLinejoin: "round",
          fill: "none",
        }),
      }),
    ],
  });
};

i have this icon component and when trying to style it with className , the styles are not applying

Reproduction
Here is the reproduction: https://stackblitz.com/edit/nativewind-test-4whoakvo?file=nativewind.test.tsx

Expected behavior
tailwind styles in className should be applied

Activity

  1. self-assigned this
    on Oct 12, 2025
  2. danstepanov commented on Oct 15, 2025

    @danstepanov
    Member

    I'll take a look but I'll be recreating with v4.1 and SDK 54 via npx rn-new@latest --nativewind (your example uses SDK 51). Would be helpful if you could provide a repro of that before I get to it.

  3. moved this to Todo in Roadmapon Mar 26, 2026
  4. danstepanov commented on Apr 15, 2026

    @danstepanov
    Member

    Closing as stale — no reproduction provided. If still relevant, please open a new issue with a minimal repro.

  5. moved this from Todo to Done in Roadmapon Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions