Skip to content
프로젝트

saulsharma/apple-music-sheet-ui

GitHub에서 보기

소개

Apple Music UI in Expo/React Native

웹 및 앱 개발

이 수치를 측정하는 방법

What you can do

  • 🎵 Full-screen music player modal with gesture controls
  • 🔄 Smooth scaling animations of the root content
  • 👆 Interactive pan gesture handling
  • 📱 iOS-style sheet presentation

측정된 스타 증가

in 24h
0
in 7 days
-1
in 15 days
-1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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.

Demo

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

Getting Started

  1. Install dependencies:

    npm install
    
  2. Start the development server:

    npx expo start
    
  3. Open in iOS Simulator or Android Emulator:

    • Press i for iOS
    • Press a for Android

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:

  1. Forking the repository
  2. Creating a feature branch
  3. Submitting a pull request

License

This project is open source and available under the MIT License.

관련 프로젝트 살펴보기

불러오는 중…