Vue NativeVue Native
Guide
Components
Composables
Navigation
  • iOS
  • Android
  • macOS
GitHub
Guide
Components
Composables
Navigation
  • iOS
  • Android
  • macOS
GitHub
  • Device & System

    • useNetwork
    • useAppState
    • useColorScheme
    • useDeviceInfo
    • useDimensions
    • usePlatform
  • Storage & Files

    • useAsyncStorage
    • useSecureStorage
    • useFileSystem
    • useDatabase
  • Sensors & Hardware

    • useGeolocation
    • useBiometry
    • useHaptics
    • useSensors
    • useBluetooth
  • Media

    • useCamera
    • useAudio
    • useCalendar
    • useContacts
  • Networking

    • useHttp
    • useWebSocket
  • Permissions

    • usePermissions
  • Navigation

    • useBackHandler
    • useSharedElementTransition
  • UI

    • useKeyboard
    • useClipboard
    • useShare
    • useLinking
    • useAnimation
    • useGesture
    • useNotifications
    • useI18n
    • usePerformance
  • Authentication

    • useAppleSignIn
    • useGoogleSignIn
  • Monetization & Updates

    • useIAP
    • useOTAUpdate
    • useBackgroundTask
  • Desktop (macOS)

    • useWindow
    • useMenu
    • useFileDialog
    • useDragDrop

Composables

Vue Native exposes native device capabilities as Vue 3 composables.

All composables are exported from @thelacanians/vue-native-runtime.

Device & System

  • useNetwork -- Network connectivity
  • useAppState -- App foreground/background state
  • useColorScheme -- Light/dark mode
  • useDeviceInfo -- Device model, screen dimensions
  • useDimensions -- Screen and window dimensions
  • usePlatform -- Platform detection (iOS/Android/macOS)
  • useBackHandler -- Android back button interception

Storage & Files

  • useAsyncStorage -- Persistent key-value store
  • useSecureStorage -- Encrypted key-value store (Keychain / EncryptedSharedPreferences)
  • useFileSystem -- File system access
  • useDatabase -- SQLite database

Sensors & Hardware

  • useGeolocation -- GPS coordinates
  • useBiometry -- Face ID / Touch ID / Fingerprint
  • useHaptics -- Haptic feedback / vibration
  • useSensors -- Accelerometer and gyroscope
  • useBluetooth -- Bluetooth Low Energy

Media

  • useCamera -- Camera + photo library picker
  • useAudio -- Audio playback and recording
  • useCalendar -- Calendar events
  • useContacts -- Contacts access

Networking

  • useHttp -- HTTP client
  • useWebSocket -- WebSocket connections

Permissions

  • usePermissions -- Runtime permission requests

Navigation

  • useSharedElementTransition -- Cross-screen animated transitions

UI

  • useKeyboard -- Keyboard visibility and height
  • useClipboard -- Copy and paste
  • useShare -- Native share sheet
  • useLinking -- Open URLs
  • useAnimation -- Timing and spring animations
  • useNotifications -- Local notifications
  • useI18n -- Locale and RTL detection
  • usePerformance -- FPS, memory, and bridge metrics

Authentication

  • useAppleSignIn -- Sign in with Apple
  • useGoogleSignIn -- Sign in with Google

Monetization & Updates

  • useIAP -- In-app purchases
  • useOTAUpdate -- Over-the-air bundle updates
  • useBackgroundTask -- Background task scheduling

Desktop (macOS)

The following composables are available exclusively on macOS targets and expose desktop-specific capabilities.

  • useWindow -- Control window size, position, title, and full-screen state
  • useMenu -- Build and update the native macOS menu bar (NSMenu)
  • useFileDialog -- Open and save panel dialogs for file system access
  • useDragDrop -- Register views as drag sources or drop targets (NSDraggingDestination)
Edit this page
Last Updated: 2/28/26, 11:24 PM
Contributors: Abdul Hamid, Claude Opus 4.6