@nrwl/react-native:library
Create a React Native Library for Nx.
Usage
nx generate library ...
nx g lib ... #same
By default, Nx will search for library
in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
nx g @nrwl/react-native:library ...
Show what will be generated without writing to disk:
nx g library ... --dry-run
Examples
Generate libs/myapp/mylib
:
nx g @nrwl/react-native:lib mylib --directory=myapp