nstudio / nativescript-camera-plus

MIT License
79 stars 50 forks source link

Event object has a different interface #26

Closed michael-vasyliv closed 6 years ago

michael-vasyliv commented 6 years ago

Hello everyone! Thanks for your library. I`ve tried to make the same ng-demo as in your repository but got an error (i guess). The object from the event that in https://github.com/vasyliv/test-nativescript-camera-plus/blob/master/app/home/home.component.ts#L32 doesn't have interface CameraPlus, it has interface ProxyViewContainer (that doesn't have method "takePicture") image

michael-vasyliv commented 6 years ago

a problem might be with "tns-core-modules": "4.0.0", i guess i should be 3.+

Tallking commented 4 years ago

I am having the same issue. The object comes up as ProxyViewContainer instead of CameraPlus hence does not have the getFlashMode() method. Have you resolved this challenge. Please what did you do. I am running angular 8 and tns-core-modules is 6.1.0

michael-vasyliv commented 4 years ago

@Tallking I fixed the problem by replacing the package to this one nativescript-camera

Tallking commented 4 years ago

Thank you for your reply. But I resolved it by registering the CameraPlus element using nativescript registerElement module.