How jotalexvalencia/reactnativespotifyminiclone works
SpotifyMusic08 is a React Native audio player. The runtime flow initializes Track Player and loads the configured playlist, then presents playback controls, track details, artwork and seek/progress UI. Remote notification, lock-screen and headset controls are handled by the playback service. The README documents background playback and queue repeat; native Android/iOS shells host the app. Edges are limited to relationships shown in excerpts or explicitly documented; the native hosting and some documented capabilities are not expanded into unsampled implementation details.
Main entry points: MusicPlayer.tsx Music player screen · musicPlayerServices.js Track Player service · index.js JS entry · App.tsx Player initialization
Components 14
App startup
- JS entry
index.js - Player initialization
src/App.tsx
Playlist data
- Playlist tracks
src/constants.ts - Bundled audio
src/assets/audio
Player interface
- Music player screen
src/screens/MusicPlayer.tsx - Playback controls
src/components/ControlCenter.tsx - Track details
src/components/SongInfo.tsx - Progress slider
src/components/SongSlider.jsx
Audio playback
- Track Player service
musicPlayerServices.js - Track Player engine
- Remote controls
Other components
- Listener
- Native app host
- Artwork source
Connections 20
- Listener → Native app host: opens app
README.md - Native app host → JS entry: loads entry
- JS entry → Player initialization: registers
index.js - JS entry → Track Player service: registers service
index.js - Player initialization → Track Player service: initializes and loads
src/App.tsx - Track Player service → Playlist tracks: loads playlist
musicPlayerServices.js - Playlist tracks → Bundled audio: references audio
src/constants.ts - Player initialization → Music player screen: renders
src/App.tsx - Music player screen → Playlist tracks: renders playlist
src/screens/MusicPlayer.tsx - Music player screen → Track details: renders track details
src/screens/MusicPlayer.tsx - Music player screen → Progress slider: renders progress
src/screens/MusicPlayer.tsx - Music player screen → Playback controls: renders controls
src/screens/MusicPlayer.tsx - Music player screen → Track Player engine: reads track events
src/screens/MusicPlayer.tsx - Music player screen → Artwork source: displays artwork
- Playback controls → Track Player engine: controls playback
src/components/ControlCenter.tsx - Playback controls → Track Player service: imports remote service
src/components/ControlCenter.tsx - Progress slider → Track Player engine: seeks and reads progress
src/components/SongSlider.jsx - Track Player service → Track Player engine: sets up queue and repeat
musicPlayerServices.js - Track Player service → Remote controls: registers handlers
musicPlayerServices.js - Remote controls → Track Player engine: dispatches commands