👷♂️ Set of CLIs to scaffold and build React Native libraries for different targets.
Documentation is available at https://callstack.github.io/react-native-builder-bob/.
This project uses a monorepo using yarn. To setup the project, run yarn in the root directory to install the required dependencies.
yarnWhile developing, you can run watch mode to automatically rebuild the changes:
yarn watchTo test the CLI locally, you can point to the appropriate executable:
../bob/packages/create-react-native-library/bin/create-react-native-libraryBefore sending a pull request, make sure your code passes TypeScript and ESLint. Run the following to verify:
yarn typecheck
yarn lintTo fix formatting errors, run the following:
yarn lint --fixThe documentation for the project is under docs directory. To run the documentation locally, run the following:
yarn docs devThanks to the authors of these libraries for inspiration:
There are other similar tools to scaffold React Native libraries. The difference is that the generated project with create-react-native-library is very opinionated and configured with additional tools.
MIT