shipt / segmented-arc-for-react-native

Segmented arc component for React Native
MIT License
93 stars 10 forks source link

Fix example app issues when installing local copy of the arc #30

Closed MarquessV closed 2 years ago

MarquessV commented 2 years ago

When installing a package from a file, yarn seems to copy the entire folder, including any dev dependencies that might have been installed. This meant that if you built the example app after installing the dev dependencies for the arc, duplicate versions of react would run in the example app and cause it to crash.

To fix this issue, a new postinstall script will run that will prune any dev dependencies out of the example apps copy of the arc.

jkhusanov commented 2 years ago

checked the branch - works well