项目
在 GitHub 查看
saulsharma/apple-music-sheet-ui
关于
Apple Music UI in Expo/React Native
网站与应用开发可以做什么
- 🎵 Full-screen music player modal with gesture controls
- 🔄 Smooth scaling animations of the root content
- 👆 Interactive pan gesture handling
- 📱 iOS-style sheet presentation
实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Apple 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.
探索相关项目
加载中…