You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
kriefsacha
changed the title
@nativescript/camera _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrUndefined is not a function
@nativescript/camera - " _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrUndefined is not a function "
Dec 23, 2020
rigor789
changed the title
@nativescript/camera - " _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrUndefined is not a function "
[@nativescript/camera] _nativescript_core__WEBPACK_IMPORTED_MODULE_0__.Utils.isNullOrUndefined is not a function
Jan 26, 2021
if (!permissions.hasPermission(android.Manifest.permission.CAMERA)) {
reject(new Error('Application does not have permissions to use Camera'));
return;
} let types = require('tns-core-modules/utils/types');
let saveToGallery = true;
let reqWidth = 0;
let reqHeight = 0;
let shouldKeepAspectRatio = true;
let density = Utils.layout.getDisplayDensity();
if (options) { saveToGallery = types.isNullOrUndefined(options.saveToGallery) ? saveToGallery : options.saveToGallery;
reqWidth = options.width ? options.width * density : reqWidth;
reqHeight = options.height ? options.height * density : reqWidth; shouldKeepAspectRatio = types.isNullOrUndefined(options.keepAspectRatio) ? shouldKeepAspectRatio : options.keepAspectRatio;
}
Hi,
I had this issue by using
So i saw it was fixed on version 5.0.2 of @nativescript/camera , i removed the last one and puted this. But now i have another error message :
I'm on nativescript (v6.5.1) angular, android 11, this is my package.json if needed:
Manifest:
Please help ! Thanks !
The text was updated successfully, but these errors were encountered: