Skip to content

Latest commit

 

History

History
executable file
·
22 lines (16 loc) · 496 Bytes

README.md

File metadata and controls

executable file
·
22 lines (16 loc) · 496 Bytes

NativeScript document picker plugin

Installation

From the command prompt go to your app's root folder and execute:

tns plugin add @nativescript-community/ui-document-picker

API

only one function exported

export interface FilePickerOptions {
    extensions: string[];
    multipleSelection?: boolean;
    pickerMode?: number;
}
export function openFilePicker(params: FilePickerOptions): Promise<{ files: string[]; ios?: NSURL; android?: android.net.Uri }>;