Many react-native projects already have reanimated and gesture-handler installed as dependencies. However, when installing @showtime-xyz/tab-view, it installs another version of these packages, leading to multiple versions being installed within the same project. This situation arises because the package does not make use of the peerDependencies feature provided by the package manager.
Solution
This PR proposes a simple solution by moving the peer dependencies from the dependencies section to the devDependencies section in the package.json file. This adjustment ensures that the package manager does not reinstall different versions of the same packages unnecessarily, avoiding conflicts and potential compatibility issues.
Problem
Many
react-native
projects already havereanimated
andgesture-handler
installed as dependencies. However, when installing@showtime-xyz/tab-view
, it installs another version of these packages, leading to multiple versions being installed within the same project. This situation arises because the package does not make use of thepeerDependencies
feature provided by the package manager.Solution
This PR proposes a simple solution by moving the peer dependencies from the
dependencies
section to thedevDependencies
section in the package.json file. This adjustment ensures that the package manager does not reinstall different versions of the same packages unnecessarily, avoiding conflicts and potential compatibility issues.