# rogerespinoza/react-native-bank-list architecture

> Architecture diagram of the GitHub repository rogerespinoza/react-native-bank-list, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-29). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rogerespinoza/react-native-bank-list
- Repository: https://github.com/rogerespinoza/react-native-bank-list

## Overview

This React Native financial-product app lets users browse and search products, inspect details, add or edit entries, and delete them. Screens and their hooks own user actions; a shared context holds the current product list, while DataHandler and the repository adapt product data for the API. The tree documents these product capabilities, but the README only describes a generic React Native starter. API transport details and several component internals were not excerpted, so uncertain relationships are omitted.

Main entry points: [`src/components/productForm/productForm.tsx`](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/productForm.tsx) (Product form), [`src/infraestructure/repositories/dataHandler.ts`](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/repositories/dataHandler.ts) (Data handler), [`src/contexts/products/contextProvider.tsx`](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/contexts/products/contextProvider.tsx) (Product context), [`App.tsx`](https://github.com/rogerespinoza/react-native-bank-list/blob/main/App.tsx) (App entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Product screens"]
  node_app["App entry<br/>[App.tsx]"]
  node_navigation["Home navigation<br/>[homeNavigation.tsx]"]
  node_routes["Screen routes<br/>[routes.ts]"]
  node_list_screen["Product list<br/>[productsList.tsx]"]
  node_list_hook["List behavior"]
  node_detail_screen["Product details<br/>[productDetail.tsx]"]
  node_detail_hook["Delete behavior"]
  node_add_screen["Add product<br/>[addProduct.tsx]"]
  node_add_hook["Create behavior<br/>[useAddProduct.tsx]"]
  node_edit_screen["Edit product<br/>[editProduct.tsx]"]
  node_edit_hook["Update behavior<br/>[useEditProduct.tsx]"]
end

subgraph group_state["Product state"]
  node_context["Product context"]
end

subgraph group_data["Data access"]
  node_data_handler["Data handler<br/>[dataHandler.ts]"]
  node_repository["Product repository"]
  node_api["Products API<br/>[products.ts]"]
  node_client["API client<br/>[index.ts]"]
end

subgraph group_shared["Shared UI and domain"]
  node_form["Product form<br/>[productForm.tsx]"]
  node_form_logic["Form behavior<br/>[functions.ts]"]
  node_form_model["Form model<br/>[model.ts]"]
  node_financial_product["Financial product"]
  node_list_item["Product list item<br/>[listItem.tsx]"]
  node_form_controls["Form controls<br/>[inputField.tsx]"]
  node_date_picker["Date picker<br/>[datePicker.tsx]"]
  node_button["Button<br/>[button.tsx]"]
  node_confirm_modal["Confirm modal<br/>[modalConfirm.tsx]"]
  node_spacer["Spacer<br/>[spacer.tsx]"]
end

node_user(("App user"))

node_user -->|"opens"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"provides"| node_context
node_navigation -->|"uses routes"| node_routes
node_user -->|"browses"| node_list_screen
node_list_screen -->|"uses behavior"| node_list_hook
node_list_hook -->|"fetches products"| node_data_handler
node_list_hook -->|"updates products"| node_context
node_list_screen -->|"renders items"| node_list_item
node_user -->|"opens details"| node_detail_screen
node_detail_screen -->|"uses behavior"| node_detail_hook
node_detail_hook -->|"deletes and fetches"| node_data_handler
node_detail_hook -->|"refreshes products"| node_context
node_user -->|"adds product"| node_add_screen
node_add_screen -->|"uses behavior"| node_add_hook
node_add_screen -->|"renders form"| node_form
node_add_hook -->|"creates and fetches"| node_data_handler
node_add_hook -->|"refreshes products"| node_context
node_user -->|"edits product"| node_edit_screen
node_edit_screen -->|"uses behavior"| node_edit_hook
node_edit_screen -->|"renders form"| node_form
node_edit_hook -->|"updates and fetches"| node_data_handler
node_edit_hook -->|"refreshes products"| node_context
node_data_handler -->|"delegates"| node_repository
node_repository -->|"calls API"| node_api
node_api -->|"uses client"| node_client
node_repository -->|"adapts product"| node_financial_product
node_form -->|"uses functions"| node_form_logic
node_form -->|"uses model"| node_form_model
node_form_logic -->|"uses type"| node_financial_product
node_form -->|"renders fields"| node_form_controls
node_form -->|"renders dates"| node_date_picker
node_date_picker -->|"uses"| node_button
node_confirm_modal -->|"uses"| node_button
node_confirm_modal -->|"uses"| node_spacer

click node_app "https://github.com/rogerespinoza/react-native-bank-list/blob/main/App.tsx"
click node_navigation "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/navigation/homeNavigation.tsx"
click node_routes "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/navigation/routes.ts"
click node_list_screen "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productsList/productsList.tsx"
click node_list_hook "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productsList/useProductsList.tsx"
click node_detail_screen "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productDetail/productDetail.tsx"
click node_detail_hook "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productDetail/useProductDetail.tsx"
click node_add_screen "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/addProduct/addProduct.tsx"
click node_add_hook "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/addProduct/useAddProduct.tsx"
click node_edit_screen "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/editProduct/editProduct.tsx"
click node_edit_hook "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/editProduct/useEditProduct.tsx"
click node_context "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/contexts/products/contextProvider.tsx"
click node_data_handler "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/repositories/dataHandler.ts"
click node_repository "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/repositories/productsRepository.ts"
click node_api "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/api/products.ts"
click node_client "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/client/index.ts"
click node_form "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/productForm.tsx"
click node_form_logic "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/functions.ts"
click node_form_model "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/model.ts"
click node_financial_product "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/domain/financialProduct.ts"
click node_list_item "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/listItem.tsx"
click node_form_controls "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/inputField.tsx"
click node_date_picker "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/datePicker.tsx"
click node_button "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/button/button.tsx"
click node_confirm_modal "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/modalConfirm.tsx"
click node_spacer "https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/spacer.tsx"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_navigation,node_routes,node_list_screen,node_list_hook,node_detail_screen,node_detail_hook,node_add_screen,node_add_hook,node_edit_screen,node_edit_hook,node_user toneBlue
class node_context toneAmber
class node_data_handler,node_repository,node_api,node_client toneMint
class node_form,node_form_logic,node_form_model,node_financial_product,node_list_item,node_form_controls,node_date_picker,node_button,node_confirm_modal,node_spacer toneRose
```

## Components

### Product screens

- [App entry](https://github.com/rogerespinoza/react-native-bank-list/blob/main/App.tsx): `App.tsx`
- [Home navigation](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/navigation/homeNavigation.tsx): `src/navigation/homeNavigation.tsx`
- [Screen routes](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/navigation/routes.ts): `src/navigation/routes.ts`
- [Product list](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productsList/productsList.tsx): `src/views/productsList/productsList.tsx`
- [List behavior](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productsList/useProductsList.tsx): `src/views/productsList/useProductsList.tsx`
- [Product details](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productDetail/productDetail.tsx): `src/views/productDetail/productDetail.tsx`
- [Delete behavior](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/productDetail/useProductDetail.tsx): `src/views/productDetail/useProductDetail.tsx`
- [Add product](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/addProduct/addProduct.tsx): `src/views/addProduct/addProduct.tsx`
- [Create behavior](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/addProduct/useAddProduct.tsx): `src/views/addProduct/useAddProduct.tsx`
- [Edit product](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/editProduct/editProduct.tsx): `src/views/editProduct/editProduct.tsx`
- [Update behavior](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/views/editProduct/useEditProduct.tsx): `src/views/editProduct/useEditProduct.tsx`

### Product state

- [Product context](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/contexts/products/contextProvider.tsx): `src/contexts/products/contextProvider.tsx`

### Data access

- [Data handler](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/repositories/dataHandler.ts): `src/infraestructure/repositories/dataHandler.ts`
- [Product repository](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/repositories/productsRepository.ts): `src/infraestructure/repositories/productsRepository.ts`
- [Products API](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/api/products.ts): `src/infraestructure/api/products.ts`
- [API client](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/infraestructure/client/index.ts): `src/infraestructure/client/index.ts`

### Shared UI and domain

- [Product form](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/productForm.tsx): `src/components/productForm/productForm.tsx`
- [Form behavior](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/functions.ts): `src/components/productForm/functions.ts`
- [Form model](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/productForm/model.ts): `src/components/productForm/model.ts`
- [Financial product](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/domain/financialProduct.ts): `src/domain/financialProduct.ts`
- [Product list item](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/listItem.tsx): `src/components/listItem.tsx`
- [Form controls](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/inputField.tsx): `src/components/inputField.tsx`
- [Date picker](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/datePicker.tsx): `src/components/datePicker.tsx`
- [Button](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/button/button.tsx): `src/components/button/button.tsx`
- [Confirm modal](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/modalConfirm.tsx): `src/components/modalConfirm.tsx`
- [Spacer](https://github.com/rogerespinoza/react-native-bank-list/blob/main/src/components/spacer.tsx): `src/components/spacer.tsx`

### Other components

- **App user**

## Connections

- App user → App entry: opens
- App entry → Home navigation: renders (evidence: `App.tsx`)
- App entry → Product context: provides (evidence: `App.tsx`)
- Home navigation → Screen routes: uses routes (evidence: `src/navigation/homeNavigation.tsx`)
- App user → Product list: browses
- Product list → List behavior: uses behavior (evidence: `src/views/productsList/productsList.tsx`)
- List behavior → Data handler: fetches products (evidence: `src/views/productsList/useProductsList.tsx`)
- List behavior → Product context: updates products (evidence: `src/views/productsList/useProductsList.tsx`)
- Product list → Product list item: renders items (evidence: `src/components/listItem.tsx`)
- App user → Product details: opens details
- Product details → Delete behavior: uses behavior (evidence: `src/views/productDetail/productDetail.tsx`)
- Delete behavior → Data handler: deletes and fetches (evidence: `src/views/productDetail/useProductDetail.tsx`)
- Delete behavior → Product context: refreshes products (evidence: `src/views/productDetail/useProductDetail.tsx`)
- App user → Add product: adds product
- Add product → Create behavior: uses behavior (evidence: `src/views/addProduct/addProduct.tsx`)
- Add product → Product form: renders form (evidence: `src/views/addProduct/addProduct.tsx`)
- Create behavior → Data handler: creates and fetches (evidence: `src/views/addProduct/useAddProduct.tsx`)
- Create behavior → Product context: refreshes products (evidence: `src/views/addProduct/useAddProduct.tsx`)
- App user → Edit product: edits product
- Edit product → Update behavior: uses behavior (evidence: `src/views/editProduct/editProduct.tsx`)
- Edit product → Product form: renders form (evidence: `src/views/editProduct/editProduct.tsx`)
- Update behavior → Data handler: updates and fetches (evidence: `src/views/editProduct/useEditProduct.tsx`)
- Update behavior → Product context: refreshes products (evidence: `src/views/editProduct/useEditProduct.tsx`)
- Data handler → Product repository: delegates (evidence: `src/infraestructure/repositories/dataHandler.ts`)
- Product repository → Products API: calls API (evidence: `src/infraestructure/repositories/productsRepository.ts`)
- Products API → API client: uses client (evidence: `src/infraestructure/api/products.ts`)
- Product repository → Financial product: adapts product (evidence: `src/infraestructure/repositories/productsRepository.ts`)
- Product form → Form behavior: uses functions (evidence: `src/components/productForm/productForm.tsx`)
- Product form → Form model: uses model (evidence: `src/components/productForm/productForm.tsx`)
- Form behavior → Financial product: uses type (evidence: `src/components/productForm/functions.ts`)
- Product form → Form controls: renders fields (evidence: `src/components/productForm/productForm.tsx`)
- Product form → Date picker: renders dates (evidence: `src/components/productForm/productForm.tsx`)
- Date picker → Button: uses (evidence: `src/components/datePicker.tsx`)
- Confirm modal → Button: uses (evidence: `src/components/modalConfirm.tsx`)
- Confirm modal → Spacer: uses (evidence: `src/components/modalConfirm.tsx`)
