I've been working on a React Native component library for a couple months, and everything worked fine until I added a Sliding Up Panel (built from scratch). This lib aims to provide basic components (buttons, sliding panels, dropdown...) made from scratch, using a minimum external libraries as possible.
So, I made a expo init
in order to create a react native project. I made my components, that I centralized in an index.tsx, and I created a App.tsx that allows me to test my components with Expo Go. The only thing I have to change is the "main" property in package.json, which is "main": "node_modules/expo/AppEntry.js"
for Expo Go, and "main": "index.tsx"
when I publish it on NPM. Everything has always worked that way, until the 1.0.30 version, which introduced a new component made of react-native-reanimated (2), the Sliding Up Panel.
Since this update, it doesn't work anymore : on Expo Go, everything works well, but when I export it as a library on NPM and I import it on another project, the app stays on the Expo splash screen without any loading bar or error message :
Here is the full repo if you wanna see (I cannot post any minimal reproducible example since it is a very particular problem I didn't manage to reproduce).
Thanks everyone !