generate-component-scaffold
Generates production-ready, type-safe React Native boilerplate code for lists, forms, navigation, API calls, and more. Customize scaffolds by library, category, or template to speed up development.
Instructions
Generates boilerplate code for common React Native patterns like FlatList, navigation screens, forms, API calls, and more. Returns production-ready, type-safe code following best practices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| library | No | Filter scaffolds by library | |
| category | No | Filter scaffolds by category | |
| language | No | Target language | typescript |
| scaffoldId | No | ID of the scaffold template (e.g., 'flatlist-basic', 'stack-navigator', 'form-basic') | |
| listScaffolds | No | If true, returns list of available scaffolds instead of generating code | |
| styleApproach | No | Styling approach | stylesheet |
| customizations | No | Key-value pairs for template variable substitution (e.g., {componentName: 'UserList', itemType: 'User'}) | |
| includeComments | No | Include explanatory comments in generated code |