Colby Miller
Apr 12 · 1 min read

Hi Ridwan! Apologize for such a late response. If your package requires that the client app installs another package as a dependency, follow these steps:

  • Install the dependency package into yours using either yarn add <package-name> or npm i <package-name>
  • When the client app installs your package, they will also install that dependency by default since its now part of the package.json file.
  • Instruct them to run react-native link after installing your package.

Hopefully I understood your question correctly.

    Colby Miller

    Written by

    Software Developer. Always Learning. https://colbymillerdev.com