Skip to main content

Native APIs

Access native device capabilities through React hooks in your Universal Apps. Catalyst Core provides a comprehensive set of APIs that work seamlessly across Web, iOS, and Android platforms.

Available APIs

Core APIs

Media & File Management

User Experience

  • Haptic APIs - Haptic feedback and vibration integration

Data & Storage

Architecture

All native APIs follow consistent patterns:

  • Hook-based: Use React hooks for state management
  • Promise-based: Async operations return promises
  • Platform-aware: Graceful fallbacks for unsupported platforms
  • Type-safe: Full TypeScript support

Platform Support

PlatformSupport LevelNotes
🌐 Web✅ FullHTML5 APIs with fallbacks
📱 iOS✅ FullNative iOS integration
🤖 Android✅ FullNative Android integration

Getting Started

  1. Import the hooks you need from catalyst-core/hooks
  2. Use them in your React components
  3. Handle platform-specific behaviors automatically
  4. Access native capabilities with web fallbacks