How ericpraveen/cricketscore works
This is an Expo-based cricket match scoring and tracking app. The visible workflow starts from the match list, proceeds through match setup and toss into live ball-by-ball scoring, then presents scorecards, analysis and PDF export; match history remains available from the home experience. SQLite queries provide persistence, while cricket-statistics utilities derive summaries used by screens and analysis. Several screen implementations were not excerpted, so their domain roles are represented, but unshown navigation and data-flow links are omitted.
Main entry points: queries.ts Match queries · cricketStats.ts Cricket statistics · scorecard.tsx Match scorecard · index.tsx Match home
Components 13
Match workflow
- Match home
app/index.tsx - Match setup
app/setup.tsx - Toss selection
app/toss.tsx - Live scoring
app/scoring.tsx - Score celebration
components/CelebrationOverlay.tsx
Match views
- Match history
app/history.tsx - Match scorecard
app/scorecard.tsx - Match charts
components/MatchCharts.tsx - Scorecard PDF
utils/scorecardPdf.ts
Cricket logic
- Cricket statistics
utils/cricketStats.ts
Persistence
- Match queries
db/queries.ts - SQLite database
db/database.ts
Other components
- Cricket user
Connections 18
- Cricket user → Match home: opens app
- Match home → Match setup: opens setup
app/index.tsx - Match home → Match queries: loads and deletes
app/index.tsx - Match setup → Match queries: match data
app/setup.tsx - Toss selection → Match queries: match data
app/toss.tsx - Live scoring → Match queries: score data
app/scoring.tsx - Live scoring → Score celebration: renders
app/scoring.tsx - Match history → Match queries: match records
app/history.tsx - Match history → Cricket statistics: derives summaries
app/history.tsx - Match scorecard → Match queries: match data
app/scorecard.tsx - Match scorecard → Cricket statistics: derives statistics
app/scorecard.tsx - Match scorecard → Match charts: renders analysis
app/scorecard.tsx - Match scorecard → Scorecard PDF: exports scorecard
app/scorecard.tsx - Match charts → Cricket statistics: uses summaries
components/MatchCharts.tsx - Cricket statistics → Match queries: reads match data
utils/cricketStats.ts - Scorecard PDF → Match queries: uses match types
utils/scorecardPdf.ts - Scorecard PDF → Cricket statistics: uses analysis types
utils/scorecardPdf.ts - Match queries → SQLite database: executes queries
db/queries.ts