Skip to content

About

Android-first Expo and React Native darts scorer with AsyncStorage persistence, Firebase sync, and shared match logic.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Darts Scores Native

Darts Scores Native is an Android-first Expo / React Native scorer app derived from the darts-scorer-web project.

The mobile app reuses the same match domain model and cloud sync format as the web version, but adapts the flow for touch-first setup, scoring, leg transitions, and on-device persistence.

Current Feature Set

  • Expo SDK 54 app in TypeScript
  • mobile-first match setup, scoring, leg-finished, and match-finished screens
  • reused game engine and shared match domain model from the web app
  • local persistence with AsyncStorage so in-progress matches survive app restarts
  • Firebase Auth and Firestore sync using the same games collection shape as the web app
  • Russian and English UI toggle
  • Expo EAS configuration for preview APK and production builds

Tech Stack

  • Expo
  • React Native
  • TypeScript
  • AsyncStorage
  • Firebase Auth
  • Firestore

Main Scripts

  • npm install — install dependencies
  • npm run start — start the Expo dev server
  • npm run android — build and run the Android app locally
  • npm run ios — build and run the iOS app locally
  • npm run web — launch the web preview
  • npm run typecheck — run tsc --noEmit
  • npm run version:build — bump build metadata before native runs

Local Run

  1. cd /Users/valeryazartsov/darts-scorer-native
  2. npm install
  3. npm run android

Environment

Create .env or .env.local inside darts-scorer-native with:

EXPO_PUBLIC_FIREBASE_API_KEY=...
EXPO_PUBLIC_FIREBASE_AUTH_DOMAIN=...
EXPO_PUBLIC_FIREBASE_PROJECT_ID=...
EXPO_PUBLIC_FIREBASE_STORAGE_BUCKET=...
EXPO_PUBLIC_FIREBASE_MESSAGING_SENDER_ID=...
EXPO_PUBLIC_FIREBASE_APP_ID=...

Included Mobile Flow

  • match setup
  • turn submission with per-dart values
  • simple and double-out rules
  • multi-leg support
  • undo and reset
  • email/password sign-in and sign-up
  • autosave of finished matches to Firestore
  • shared Elo and statistics view backed by the same user history format as the web app

Not Yet Ported

  • the full web dartboard UI
  • backup and restore flows
  • the full advanced statistics modal from the web version

Project Notes

  • repository scope: standalone mobile app extracted into its own GitHub repository
  • current package name inside package.json: darts-scorer-native
  • Firebase keys are read from Expo public env variables and should stay out of source control

Changelog

Project-level updates are tracked in CHANGELOG.md.

About

Android-first Expo and React Native darts scorer with AsyncStorage persistence, Firebase sync, and shared match logic.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages