-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UI Working but NO Image #71
Comments
Hi Marco, |
https://github.com/bthurlow/nativescript-imagecropper/blob/master/service-example/image-upload-service.js |
Thanks for you super fast reply and the great plugin! |
since you're using typescript, you'll have to declare those variables outside the constructor before using them. so below the line
|
Thanks shiv19, I'm getting closer ... now I can open the gallery, choose an image, crop, and start uploading. I get this error: CONSOLE LOG file: node_modules/@angular/core/fesm5/core.js:26256:0: TypeError: undefined is not an object (evaluating 'nativescript_core_ui_frame__WEBPACK_IMPORTED_MODULE_5_["Frame"].getFrameById('rootFrame').currentPage') Thanks again |
OK I managed to upload the image on the server. |
It seems that in Angular I can't use getViewById but instead I should use something like @ViewChild('profilePic',{static: false}) private profilePic: ElementRef Any suggestion? Thanks again |
yes you can use view child method and then do something like this.profilePic.nativeElement to access the {N} widget :) |
Hello,
the plugin seems to work correctly but I receive some errors and no image in console.log
CONSOLE LOG file: node_modules/@nativescript/core/ui/frame/frame-common.js:581:0: topmost() is deprecated. Use Frame.topmost() instead.
CONSOLE LOG file: node_modules/@nativescript/core/image-source/image-source.ios.js:344:0: fromNativeSource() is deprecated. Use ImageSource constructor instead.
CONSOLE LOG file: node_modules/@nativescript/core/image-source/image-source.ios.js:314:0: fromAsset() is deprecated. Use ImageSource.fromAsset() instead.
CONSOLE LOG file: src/app/modals/image/image.component.ts:49:28: {
"response": "Success",
"image": {
"ios": {}
}
Can you help, please?
Thanks
Marco
The text was updated successfully, but these errors were encountered: