Skip to content
nexubDesign System
v11.9.0

Components · Mobile only · Inputs

File List

AlphaiOS & Android

Files picked for upload with progress, errors and remove or cancel. Bring your own picker (expo-document-picker).

Usage

@nexub/react-nativeWeb: FileUpload
TSX
import { FileList } from '@nexub/react-native';

<FileList files={files} onAdd={pick} onRemove={remove} onCancel={cancel} />

Interactive preview of @nexub/react-native rendered for the web. Native chrome (switches, pickers, Liquid Glass) looks like the platform on a device.

On device

File List on iPhone (iOS simulator)

iPhone (iOS simulator)

File List on Pixel (Android emulator)

Pixel (Android emulator)

Screenshots from the latest CI run of the showcase app; the live frame renders the same code for the web.

FileList props

FileList props (React Native)
PropTypeDefaultDescription
filesrequiredFileListItem[]——
onAdd() => void—Opens your picker (expo-document-picker, image picker…); add what it returns to files.
onRemove(id: string) => void——
onCancel(id: string) => void—Stops an upload in progress.
addLabelstring——
styleStyleProp<ViewStyle>——