whocode-nativescript-filepicker
v1.0.17
Published
A simple file picker using a Custom FilePath extension for Android and UIDocumentPickerView for iOS.
Downloads
7
Maintainers
Readme
NativeScript Simple FilePicker Plugin
A simple plugin for providing file picker functionality to your NativeScript app.
Installation
tns plugin add whocode-nativescript-filepicker
Usage
import { FilePicker } from 'nativescript-simple-filepicker';
const myPicker = new FilePicker();
myPicker.openFilePicker({
extensions?: string[]; // Defaults to all
multipleSelection?: boolean; // Defaults to false
}).then((data) => {
console.log(data.files);
});
License
MIT