Shared component library with React Native web #5517
Unanswered
sergioisidoro
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hey @sergioisidoro did you manage to get past your issue? I am struggling to get things to even work with Vite! I don't suppose you would be kind enough to share a config or some guidance would you please? This is where I am so far: https://stackblitz.com/edit/vitejs-vite-zlodww?file=vite.config.ts |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to build a react native component library to be used both in a React native project but also with a React Native web project. I'm using Vite on the web side
For most cases this has been working ok, but React Reanimated has been a big struggle (eg. JSX in .js files, usage of
global
). I've managed to get past some of those problems, but now I'm getting the following error:I've tried a couple of things, and managed by accident to make it work once, but now I cannot reproduce it to work again. Has anyone attempted such a setup, and is there anything I'm missin?
Beta Was this translation helpful? Give feedback.
All reactions