screen generator creates a screen implementation inside an existing package, exports it, and writes a route scaffold when requested.
Command
Options
When
route is omitted, the normalized screen filename is used as the route filename.
Generated files
For the example above, the generator:- Verifies that
packages/chat/src/index.tsexists. - Creates
packages/chat/src/screens/conversation.tsx. - Exports
./screens/conversationfrompackages/chat/src/index.ts. - Creates a default-exporting route at
apps/mobile/src/app/(modal)/conversation.tsx. - Stops rather than overwriting an existing screen or route.
ConversationScreen from @amisi-mobile-starter/chat and exports it as the route default.
Complete the screen
The generated implementation uses basic React NativeText and View primitives with inline styles. Before shipping it:
- use shared components from
@amisi-mobile-starter/ui - use theme tokens and the project styling convention
- move user-facing text into
@amisi-mobile-starter/i18n - add typed analytics interactions
- connect domain state through the owning package
- add loading, empty, success, and error states
- add tests and run
bun run verify
Route example after correction
apps/mobile/app/(modal)/conversation.tsx.
Navigation guide
Review the active Expo Router groups and access-gate behavior.