How malboyoo/react-native-pokedex works
This Expo app is a Pokédex: users browse a searchable, sortable, paginated Pokémon list, open a Pokémon detail view, and inspect its profile, description, and base stats. The detail view also supports adjacent-Pokémon navigation and playing a Pokémon cry. Data is fetched from PokéAPI; sprites are loaded from its public sprite repository. The graph follows visible imports and calls in the excerpts and SOURCE INDEX; unsampled routing setup and implementation details are not inferred.
Main entry points: [id].tsx Pokémon detail · index.tsx Pokédex list · ThemedText.tsx Themed text · Card.tsx Card container
Components 23
App screens
- Pokédex list
app/index.tsx - Pokémon detail
app/pokemon/[id].tsx
Pokémon data
- Query hooks
hooks/useFetchQuery.tsx - PokéAPI
- Pokémon types
interface/pokemon.tsx
Reusable UI
- Search input
components/SearchBar.tsx - Sort controls
components/SortButton.tsx - Sort radio
components/Radio.tsx - List Pokémon card
components/pokemon/PokemonCard.tsx - Profile facts
components/pokemon/About.tsx - Base stats
components/pokemon/Stats.tsx - Animated stat bar
components/pokemon/AnimatedStatBar.tsx - Type tag
components/pokemon/Tag.tsx - Card container
components/Card.tsx - Row layout
components/Row.tsx - Screen container
components/RouteView.tsx - Themed text
components/ThemedText.tsx
UI foundation
- Theme colors hook
hooks/useThemeColors.ts - Color palette
constants/Colors.ts - Shadow styles
constants/Shadows.ts
Other components
- App user
- Sprite repository
- Cry audio
Connections 41
- App user → Pokédex list: opens
README.md - Pokédex list → Query hooks: loads pages
app/index.tsx - Query hooks → PokéAPI: fetches data
hooks/useFetchQuery.tsx - Query hooks → Pokémon types: types responses
hooks/useFetchQuery.tsx - Pokédex list → Search input: renders
app/index.tsx - Pokédex list → Sort controls: renders
app/index.tsx - Sort controls → Sort radio: renders
components/SortButton.tsx - Pokédex list → List Pokémon card: renders items
app/index.tsx - Pokédex list → Card container: renders
app/index.tsx - Pokédex list → Row layout: renders
app/index.tsx - Pokédex list → Themed text: renders
app/index.tsx - Pokédex list → Screen container: renders
app/index.tsx - Pokédex list → Pokémon detail: opens selected Pokémon
- App user → Pokémon detail: opens
README.md - Pokémon detail → Query hooks: loads Pokémon and species
app/pokemon/[id].tsx - Pokémon detail → PokéAPI: loads artwork
app/pokemon/[id].tsx - Pokémon detail → Sprite repository: loads sprite
app/pokemon/[id].tsx - Pokémon detail → Cry audio: plays cry
app/pokemon/[id].tsx - Pokémon detail → Profile facts: renders facts
app/pokemon/[id].tsx - Pokémon detail → Base stats: renders stats
app/pokemon/[id].tsx - Pokémon detail → Type tag: renders types
app/pokemon/[id].tsx - Pokémon detail → Card container: renders
app/pokemon/[id].tsx - Pokémon detail → Row layout: renders
app/pokemon/[id].tsx - Pokémon detail → Themed text: renders
app/pokemon/[id].tsx - Pokémon detail → Screen container: renders
app/pokemon/[id].tsx - Profile facts → Row layout: uses layout
components/pokemon/About.tsx - Profile facts → Themed text: uses text
components/pokemon/About.tsx - Base stats → Animated stat bar: renders bars
components/pokemon/Stats.tsx - Base stats → Row layout: uses layout
components/pokemon/Stats.tsx - Base stats → Themed text: uses text
components/pokemon/Stats.tsx - Type tag → Themed text: uses text
components/pokemon/Tag.tsx - List Pokémon card → Card container: uses container
components/pokemon/PokemonCard.tsx - List Pokémon card → Themed text: uses text
components/pokemon/PokemonCard.tsx - Search input → Row layout: uses layout
components/SearchBar.tsx - Card container → Theme colors hook: reads colors
components/Card.tsx - Card container → Shadow styles: uses styles
components/Card.tsx - Sort controls → Card container: uses container
components/SortButton.tsx - Sort controls → Theme colors hook: reads colors
components/SortButton.tsx - Theme colors hook → Color palette: selects palette
hooks/useThemeColors.ts - Themed text → Theme colors hook: reads colors
components/ThemedText.tsx - Themed text → Color palette: uses color keys
components/ThemedText.tsx