How ademivaldo/challenge_pokemon works
This is an Expo/React Native Pokémon catalog app. Users browse and search a paginated catalog, filter by type, open Pokémon details, mark favorites, and explore randomly placed Pokémon on a map; favorites and catalog data persist locally. The graph follows the navigation and the screen-owned requests and storage operations shown in excerpts. Some screen details are partial, so unsampled relationships are omitted rather than inferred.
Main entry points: List.tsx Pokémon catalog · Map.tsx Pokémon map · Favorites.tsx Favorites screen · App.tsx Tab navigation
Components 13
App navigation
- Tab navigation
App.tsx
Catalog and favorites
- Pokémon catalog
src/screens/List.tsx - Favorites screen
src/screens/Favorites.tsx
Map and details
- Pokémon map
src/screens/Map.tsx - Pokémon details
src/componets/modal/StatusPokemon.tsx
Shared data and UI
- PokéAPI client
src/services/pokeApi.ts - Type filter chips
src/componets/TypeFilter.tsx - Pokémon data model
src/store/BasePokemon.ts - Responsive dimensions
src/componets/ResponsiveDimension.ts
Other components
- App user
- PokéAPI service
- AsyncStorage
- Device location
Connections 23
- App user → Tab navigation: opens
App.tsx - Tab navigation → Pokémon catalog: routes to
App.tsx - Tab navigation → Pokémon map: routes to
App.tsx - Tab navigation → Favorites screen: routes to
App.tsx - Pokémon catalog → PokéAPI client: requests data
src/screens/List.tsx - PokéAPI client → PokéAPI service: fetches from
src/services/pokeApi.ts - Pokémon catalog → AsyncStorage: reads and writes
src/screens/List.tsx - Pokémon catalog → Type filter chips: uses for filtering
README.md - Favorites screen → AsyncStorage: reads and writes
src/screens/Favorites.tsx - Favorites screen → Tab navigation: navigates to catalog
src/screens/Favorites.tsx - Pokémon map → PokéAPI client: requests page
src/screens/Map.tsx - Pokémon map → AsyncStorage: reads and writes cache
src/screens/Map.tsx - Pokémon map → Device location: requests position
src/screens/Map.tsx - Pokémon map → Pokémon details: opens details
src/screens/Map.tsx - Pokémon details → PokéAPI service: fetches stats
src/componets/modal/StatusPokemon.tsx - PokéAPI client → Pokémon data model: uses item type
src/services/pokeApi.ts - Pokémon catalog → Pokémon data model: uses item type
src/screens/List.tsx - Pokémon map → Pokémon data model: uses item type
src/screens/Map.tsx - Favorites screen → Pokémon data model: uses item type
src/screens/Favorites.tsx - Type filter chips → Responsive dimensions: sizes text with
src/componets/TypeFilter.tsx - Pokémon catalog → Responsive dimensions: sizes text with
src/screens/List.tsx - Pokémon details → Responsive dimensions: sizes text with
src/componets/modal/StatusPokemon.tsx - Favorites screen → Responsive dimensions: sizes text with
src/screens/Favorites.tsx