nativescript-camera-plus icon indicating copy to clipboard operation
nativescript-camera-plus copied to clipboard

Event object has a different interface

Open mykvas opened this issue 8 years ago • 4 comments

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

mykvas avatar Apr 20 '18 11:04 mykvas

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

mykvas avatar Apr 20 '18 11:04 mykvas

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

Tallking avatar Nov 25 '19 11:11 Tallking

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

mykvas avatar Nov 25 '19 12:11 mykvas

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

Tallking avatar Dec 27 '19 18:12 Tallking