Closed chriscoderdr closed 2 weeks ago
encountered this problem while trying to create the shared package: https://github.com/facebook/react/issues/24928
WIP
been trying to include the components, all are working except the ones that have native components included (mapbox, phone-input)
So i spend the day trying the library to work as a workspace: it didn't (wrong relative link)
I'm using as a file instead: "react-native-morro-taxi-rn-components": "file:./../../packages/morro-taxi-rn-components",
but the problem is if I made a change it won't refresh
yarn install --force kinda solves the problem but I don't want to reinstall the whole dependencies
my solution will be yarn add morro-taxi-rn-components@file:packages/morro-taxi-rn-components
yarn add morro-taxi-rn-components@file:./../../packages/morro-taxi-rn-components
won't work because it's use the route of the main project in the workspace instead of the app
I will make a watch in the library project that will rebuild and do yarn add in the projects
I ended up changing how auth works and letting redux do the work, will need to change this also on the driver, but this is for another time, will also need to refactor, just made it functional for now.
As we alreday made this components for driver's app I'll create a shared library