chriscoderdr / morro-ride-sharing

1 stars 1 forks source link

User Story: As a new rider, I want to provide my personal information to create an account. #49

Closed chriscoderdr closed 2 weeks ago

chriscoderdr commented 2 weeks ago

As we alreday made this components for driver's app I'll create a shared library

chriscoderdr commented 2 weeks ago

encountered this problem while trying to create the shared package: https://github.com/facebook/react/issues/24928

WIP

chriscoderdr commented 2 weeks ago

been trying to include the components, all are working except the ones that have native components included (mapbox, phone-input)

chriscoderdr commented 2 weeks ago

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

chriscoderdr commented 2 weeks ago

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.