Niks
TTCTheo's Typesafe Cult
•Created by Niks on 12/26/2023 in #questions
nativewind component library
Thanks for the attention,
the problem isn't that much the react-native-web part, using a react-native component in a nextjs isn't much work.
The problem really is (was) on the build step as I want the component library to be bundled and the apps to use the bundled version, and I'm (probably was) having issues with using nativewind to do that. That would be usefull both with big "expo only" monorepos, and when mixing it with react-native-web.
But I think I found a path I'll try tomorrow to fix that, globally using rollup+babel for the bundling should fit my needs, (using https://github.com/daboigbae/react-native-component-lib as an example, simplifing a lot of it),
I'll post a template here once I'm satisfied with my setup, (probably once I finish the project)
4 replies