Next.js Discord

Discord Forum

class names being removed from an imported component when using RN components and / or nativewind

Unanswered
Stony gall posted this in #help-forum
Open in Discord
Stony gallOP
Hi all,

So I've used turborepo to set up a monorepo with an Expo app, Next app, Storybook and a ui package. I can successfully import a component from the ui package into all of the Expo, Next and Storybook apps. However when the component is in the Next app, the classes that aren't react native ones are missing.

E.g. class="css-text-146c3p1 hello" in Expo and Storybook but class="css-text-146c3p1" in Next.

Thought it might be tailwind/nativewind acting up, but removing them doesn't fix it. 😕

Does Next strip classes sometimes?

0 Replies