Skip to content

Installation

PackagePurpose
@hyperserve/uploadCore: hooks, state machine, validation, shared theme
@hyperserve/upload-reactWeb UI: DropZone, FileList, FileItem, etc.
@hyperserve/upload-react-nativeReact Native UI: FilePicker, FileList, FileItem, etc.
@hyperserve/upload-adapter-hyperserveOfficial Hyperserve adapter

The core package is always required. Pick the UI package for your platform, or use neither for fully headless usage.

Terminal window
npm install @hyperserve/upload @hyperserve/upload-react

Peer dependencies: React 18+ and React DOM 18+.

Terminal window
npm install @hyperserve/upload @hyperserve/upload-react-native

Peer dependencies: React 18+.

All three are optional peer dependencies. The library gracefully degrades without them.

PackagePurposeWithout it
expo-video-metadatamaxDuration validationSkips validation, warns once
expo-video-thumbnailsThumbnail generationthumbnailUri stays null
react-native-background-uploadTrue background upload with progressFalls back to fetch with estimated progress

If you are uploading to Hyperserve, install the official adapter package:

Terminal window
npm install @hyperserve/upload-adapter-hyperserve