Proyek
Lihat di GitHub
saulsharma/apple-music-sheet-ui
Tentang
Apple Music UI in Expo/React Native
Pengembangan web dan aplikasiYang dapat Anda lakukan
- π΅ Full-screen music player modal with gesture controls
- π Smooth scaling animations of the root content
- π Interactive pan gesture handling
- π± iOS-style sheet presentation
Pertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- -1
- dalam 15 hari
- -1
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliApple Music Sheet UI Demo with Expo
This project demonstrates an implementation of the Apple Music player UI in React Native using Expo, with a focus on replicating the smooth sheet transitions and scaling animations.

Features
- π΅ Full-screen music player modal with gesture controls
- π Smooth scaling animations of the root content
- π Interactive pan gesture handling
- π± iOS-style sheet presentation
- π¨ Dynamic border radius animations
- π Visual audio visualizer
- π« Haptic feedback on modal interactions
- πΌοΈ Blur effects and backdrop filters
- π± Sticky mini-player navigation
- π Apple Music style track listing
- β‘ Gesture handling with drag thresholds
- π Horizontal swipe to dismiss
Tech Stack
- Expo - React Native development platform
- Expo Router - File-based routing
- React Native Reanimated - Smooth animations
- React Native Gesture Handler - Native-driven gesture handling
Getting Started
Install dependencies:
npm installStart the development server:
npx expo startOpen in iOS Simulator or Android Emulator:
- Press
ifor iOS - Press
afor Android
- Press
Implementation Details
The project showcases several key features of modern React Native development:
- Shared element transitions between mini and full player
- Gesture-based interactions with multi-axis support
- Context-based animation state management
- Worklet-based animations for optimal performance
Known Issues
- Horizontal drag gesture conflicts with content scrolling when the modal is partially scrolled, causing flickering. This needs to be addressed by properly managing gesture priorities and scroll state.
Project Structure
project-root/
βββ app/
β βββ (tabs)/
β β βββ search/ # Search and library screens
β β β βββ _layout.tsx
β β β βββ library.tsx
β β β βββ new.tsx
β β β βββ radio.tsx
β β βββ music/ # Music player routes
β β β βββ [id].tsx
β β β βββ _layout.tsx
β β βββ _layout.tsx # Tab navigation layout
βββ components/
β βββ navigation/
β β βββ TabBarIcon.tsx # Tab bar icons
β βββ Overlay/ # Sheet UI components
β β βββ OverlayContext.tsx
β β βββ OverlayProvider.tsx
β β βββ ThemedView.tsx
β βββ ThemedText.tsx
βββ contexts/
β βββ AudioContext.tsx # Audio playback state
β βββ RootScaleContext.tsx # Scale animation state
βββ constants/
β βββ Colors.ts # Theme colors
βββ hooks/ # Custom React hooks
βββ useColorScheme.ts
βββ useThemeColor.ts
βββ useColorScheme.web.ts
Contributing
Feel free to contribute to this project by:
- Forking the repository
- Creating a feature branch
- Submitting a pull request
License
This project is open source and available under the MIT License.
Jelajahi proyek terkait
Memuatβ¦