@nx/expo:component
Create a Expo Component for Nx.
Monorepo World: October 7, 2024Monorepo World: October 7, 2024Join us!
Create a Expo Component for Nx.
1nx generate component ...
21nx g c ... #same
2By default, Nx will search for component in the default collection provisioned in workspace.json.
You can specify the collection explicitly as follows:
1nx g @nx/expo:component ...
2Show what will be generated without writing to disk:
1nx g component ... --dry-run
2Generate a component in the mylib library:
1g @nx/expo:component mylib/my-component --name my-component
2Generate a class component in the mylib library:
1g @nx/expo:component mylib/my-component --name my-component --classComponent
2Path where the component will be generated.
falseUse class components instead of functional component.
falseWhen true, the component is exported from the project index.ts (if it exists).
falseGenerate JavaScript files rather than TypeScript files.
The name of the component.
falseWhen true, does not create "spec.ts" test files for the new component.
falseSkip formatting files.
Join us live for exciting talks on developer tooling and monorepos! Catch the action on YouTube and join the conversation on Discord!