tus-js-client-stall-detection
Version:
A pure JavaScript client for the tus resumable upload protocol (fork with stall detection)
9 lines • 395 B
JavaScript
export function isReactNativePlatform() {
return (typeof navigator !== 'undefined' &&
typeof navigator.product === 'string' &&
navigator.product.toLowerCase() === 'reactnative');
}
export function isReactNativeFile(input) {
return (input != null && typeof input === 'object' && 'uri' in input && typeof input.uri === 'string');
}
//# sourceMappingURL=isReactNative.js.map