Create your components and screens with single command
For React & React Native
npx pasta-cli --name my-component
Name | Type | Description |
---|---|---|
--name |
string (rqeuired) | If you separate the name with a - sign, you will get Pascal case output. |
--type |
react ,react-native |
It can take the values "react" or "react-native". (Default: 'react-native') |
--dir |
etc: src/components |
Specifies where to render the component. (Default: project root dir) |
This command will create a component named "button" under "src/components" folders for "react-native".
npx pasta-cli --name my-component --dir src/components --type react-native
-src/
-components/
-MyComponent/
-MyComponent.tsx
-MyComponent.Style.ts
Pasta is MIT licensed, as found in the LICENSE file.