Ionic 2 CameraPreview cordova plugin not in ionic-native


#1

When I’m trying ti import the plugin like this:
import {CameraPreview} from 'ionic-native';
I’m getting … has not exported member ‘CameraPreview’.
How can I use this plugin:
http://ionicframework.com/docs/v2/native/camerapreview/
or any other Cordova plugin that isn’t supported in ionic?


#2

make sure your package.json is using version 1.3.9 of ionic-native. if not just edit it and do npm install again


#3

The problem was ionic-native update but even after the update
Error TS2339: Property 'setOnPictureTakenHandler' does not exist on type 'CameraPreview'


#4

see logged issue here… https://github.com/driftyco/ionic-native/pull/301


#5

Do you have any experience using ionic v1 camera preview?


#6

No I don’t. Sorry about that…


#7

Hello Loved your video on camera plugin. DO you have any experience with the ionic version 1 camera preview.