How higorpalmeira/catalogo-produtos works
This is a small React Native product-listing app. Users view saved products on Home, open Register, enter and validate product details, and save a new product locally; the Home screen loads and displays saved products through cards. The graph covers the documented-by-source workflow and its storage, navigation, UI components, and product/category types. The README is empty, and unsampled modules are included only where the source index establishes their role or use.
Main entry points: Home/index.tsx Product list · Register/index.tsx Product registration · productsStorage.ts Product storage · app.routes.tsx Screen routes
Components 13
App and navigation
- App entry
src/App.tsx - Screen routes
src/routes/app.routes.tsx - Navigation types
src/routes/navigationTypes.ts
Product catalog
- Product list
src/pages/Home/index.tsx - Product registration
src/pages/Register/index.tsx - Product storage
src/storage/productsStorage.ts - Async key-value store
Reusable UI
- Product card
src/components/ProdutoCard/index.tsx - Text input
src/components/Input/index.tsx - Category selector
src/components/Select/index.tsx
Catalog types
- Product model
src/types/Produto/produtoTypes.ts - Category values
src/types/Categoria/categoriaTypes.ts
Other components
- User
Connections 20
- User → App entry: opens app
src/App.tsx - App entry → Screen routes: renders
src/App.tsx - Screen routes → Product list: routes to
src/routes/app.routes.tsx - Screen routes → Product registration: routes to
src/routes/app.routes.tsx - Screen routes → Navigation types: types routes
src/routes/app.routes.tsx - Product list → Navigation types: uses navigation types
src/pages/Home/index.tsx - Product registration → Navigation types: uses navigation types
src/pages/Register/index.tsx - Product list → Product storage: loads products
src/pages/Home/index.tsx - Product registration → Product storage: adds product
src/pages/Register/index.tsx - Product storage → Async key-value store: reads and writes
src/storage/productsStorage.ts - Product list → Product card: renders products
src/pages/Home/index.tsx - Product registration → Text input: renders fields
src/pages/Register/index.tsx - Product registration → Category selector: renders category picker
src/pages/Register/index.tsx - Product storage → Product model: stores records
src/storage/productsStorage.ts - Product storage → Category values: filters by category
src/storage/productsStorage.ts - Product list → Product model: uses product type
src/pages/Home/index.tsx - Product list → Category values: uses category type
src/pages/Home/index.tsx - Product registration → Category values: uses category values
src/pages/Register/index.tsx - Product card → Product model: renders product
src/components/ProdutoCard/index.tsx - Category selector → Category values: selects category
src/components/Select/index.tsx