Skip to content
Projects

betomoedano/expo-ui-playground

View on GitHub

About

An experimental playground for exploring and showcasing Expo UI components with comprehensive examples and real-world implementations.

Web & App Development

How these counts are measured

What you can do

  • React Context State Management using the new use() hook
  • TypeScript Integration with comprehensive type definitions
  • Real-time Interactivity - all components update dynamically
  • Realistic Data Flow - meaningful interactions between components

Measured star growth

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

๐Ÿงช Expo UI Playground

An experimental playground for exploring and showcasing Expo UI components with comprehensive examples and real-world implementations.

๐ŸŽฅ Video Tutorial

Expo UI Tutorial

๐ŸŽฏ What's Inside

This playground demonstrates a complete productivity app interface built entirely with Expo UI Swift components, featuring:

๐Ÿ“ฑ Core Components Showcase

  • Profile Management with dynamic avatar and theme customization
  • Button Variants - All 7 button styles (default, bordered, plain, glass, etc.)
  • Dashboard Metrics with interactive gauges and sliders
  • Task Management with filtering, completion tracking, and priority systems
  • Context Menus with nested submenus, switches, and destructive actions
  • Date & Time Pickers with multiple display styles and configurations
  • Settings Management with disclosure groups and advanced controls

๐Ÿ—๏ธ Architecture Features

  • React Context State Management using the new use() hook
  • TypeScript Integration with comprehensive type definitions
  • Real-time Interactivity - all components update dynamically
  • Realistic Data Flow - meaningful interactions between components
  • Modular Component Structure - well-organized and reusable sections

๐ŸŽจ UI Components Demonstrated

  • Button (7 variants)
  • Gauge (6 types: circular, capacity, linear, etc.)
  • Slider with real-time value updates
  • Switch with various configurations
  • Picker (segmented and menu variants)
  • ColorPicker with opacity support
  • DateTimePicker with multiple display modes
  • DisclosureGroup for expandable content
  • ContextMenu with nested submenus
  • ContentUnavailableView for empty states
  • Section and layout components (VStack, HStack)

๐Ÿš€ Getting Started

  1. Install dependencies

    npm install
    
  2. Start the development server

    npx expo start
    
  3. Open on your preferred platform

    • iOS Simulator (recommended for full Expo UI support)
    • Android Emulator
    • Physical device with Expo Go

Note: Some Expo UI components require iOS 16+ and work best on iOS simulators or physical iOS devices.

๐Ÿ“‚ Project Structure

app/
โ”œโ”€โ”€ _layout.tsx              # Root native tabs layout (Home, Basic, Settings)
โ”œโ”€โ”€ index.tsx               # Root redirect
โ”œโ”€โ”€ home/
โ”‚   โ”œโ”€โ”€ _layout.tsx         # Home tab layout
โ”‚   โ””โ”€โ”€ index.tsx           # Main playground (liquid-glass-example)
โ”œโ”€โ”€ basic/
โ”‚   โ”œโ”€โ”€ _layout.tsx         # Basic examples layout
โ”‚   โ”œโ”€โ”€ index.tsx           # Basic usage examples
โ”‚   โ””โ”€โ”€ modifiers.tsx       # Modifiers examples
โ””โ”€โ”€ settings.tsx            # Settings tab

components/
โ”œโ”€โ”€ liquid-glass/           # Main playground components
โ”‚   โ”œโ”€โ”€ AppContext.tsx      # React Context with use() hook
โ”‚   โ”œโ”€โ”€ types.ts            # TypeScript definitions
โ”‚   โ”œโ”€โ”€ ProfileSection.tsx  # Profile management
โ”‚   โ”œโ”€โ”€ DashboardSection.tsx # Interactive gauges & metrics
โ”‚   โ”œโ”€โ”€ TaskManagementSection.tsx # Task filtering & completion
โ”‚   โ”œโ”€โ”€ ContextMenuSection.tsx # Context menus & submenus
โ”‚   โ”œโ”€โ”€ DateTimeSection.tsx # Date/time pickers
โ”‚   โ”œโ”€โ”€ ButtonsSection.tsx  # Button variants showcase
โ”‚   โ””โ”€โ”€ SettingsSection.tsx # App settings
โ””โ”€โ”€ screens/
    โ”œโ”€โ”€ liquid-glass-example.tsx # Main playground screen
    โ”œโ”€โ”€ basic-usage-video.tsx    # Basic usage examples
    โ”œโ”€โ”€ basic-usage.tsx         # Alternative basic examples
    โ””โ”€โ”€ habit-tracker.tsx       # Additional demo screen

๐ŸŽฎ Interactive Features

Profile Section

  • Dynamic Avatar with theme color customization
  • Profile Settings with expandable disclosure groups
  • Size Controls for profile image scaling

Dashboard Metrics

  • 6 Gauge Types showcasing different visualization styles
  • Interactive Sliders with real-time value updates
  • Action Buttons for testing different states
  • Performance Tracking with meaningful metrics

Task Management

  • Real Task Data with priorities, due dates, and descriptions
  • Interactive Filtering (all, pending, completed)
  • Task Completion with immediate UI updates
  • Priority Visualization with color-coded indicators

Context Menu System

  • Nested Submenus up to 3 levels deep
  • Mixed Content - buttons, switches, destructive actions
  • Real Actions that affect app state
  • State Persistence across interactions

Date & Time Controls

  • Multiple Picker Styles (compact, graphical, wheel)
  • Different Modes (date, time, date+time)
  • Live Updates showing current selections

๐Ÿ”ง Technical Implementation

  • State Management: React Context with use() hook (React 19 feature)
  • TypeScript: Full type safety with interface definitions
  • Modular Architecture: Separated concerns with dedicated sections
  • Real Data Flow: Components interact with shared state
  • Performance Optimized: Efficient re-renders and state updates

๐Ÿ“š Learning Resources

This playground serves as a comprehensive reference for:

  • Expo UI Component Usage - practical examples of every component
  • Modern React Patterns - Context with use() hook
  • TypeScript Integration - proper typing for Expo UI components
  • State Management - complex state interactions
  • iOS Design Patterns - native iOS UI paradigms

๐Ÿค Contributing

This is an experimental playground! Feel free to:

  • Add new component examples
  • Improve existing implementations
  • Suggest new interactive features
  • Report issues or bugs

๐Ÿ“– Learn More

Explore related projects

Loadingโ€ฆ