react-native-uploader-nevo
Version:
A React Native module to upload files and camera roll assets. Supports progress notification.
28 lines (24 loc) • 523 B
JavaScript
/**
* @providesModule RNUploader
* @flow
*/
;
var { NativeModules } = require('react-native');
var NativeRNUploader = NativeModules.RNUploader;
/**
* High-level docs for the RNUploader iOS API can be written here.
*/
class RNUploader {
constructor() {
}
static upload(opts, callback) {
NativeRNUploader.upload(opts, callback);
}
static cancel(){
NativeRNUploader.cancel()
}
static test() {
NativeRNUploader.test()
}
}
module.exports = RNUploader;