Yeoman generator for generating an opinionated React and React Native shared library.
Install Yeoman and then the generator-react-rn-shared-library generator:
npm install -g yo
npm install -g generator-react-rn-shared-library
Run Yeoman command to generate the shared library:
npx yo react-rn-shared-library
Complete the inputs:
? Your project name: shared-library
? Your package name: shared-package
? Year: 2025
? Author: Unknown Author
? Repository URL (optional):
? Homepage URL (optional):
This will generate a file structure in path ./shared-library/
├── LICENSE
├── babel-preset.js
├── babel.config.js
├── package.json
└── packages
├── expo-example
│ ...
├── react-js-example
│ ...
└── shared-library
...
Pull requests are welcome.