@appello/mobile
Version:
Common package with many useful features for mobile development
16 lines (15 loc) • 487 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ReactNativeFile = void 0;
const common_1 = require("@appello/common");
class ReactNativeFile {
constructor(file) {
this.uri = file.uri;
this.name = file.name;
this.type = file.type;
}
static isReactNativeFile(obj) {
return (0, common_1.isPlainObject)(obj) && 'uri' in obj && 'name' in obj && 'type' in obj;
}
}
exports.ReactNativeFile = ReactNativeFile;