React 0.18 causes Module error -


i'm getting following error when trying module working after updating react native 0.18:

com.lwansbrough.rctcamera.rctcameraviewmanager cannot cast com.facebook.react.uimanager.viewgroupmanager

what causes type of error, , how can resolved?

here code rctcameraviewmanager:

package com.lwansbrough.rctcamera;  import android.support.annotation.nullable; import com.facebook.react.uimanager.*;  public class rctcameraviewmanager extends simpleviewmanager<rctcameraview> {     private static final string react_class = "rctcameraview";      @override     public string getname() {         return react_class;     }      @override     public rctcameraview createviewinstance(themedreactcontext context) {         return new rctcameraview(context);     }      @reactprop(name = "aspect")     public void setaspect(rctcameraview view, int aspect) {         view.setaspect(aspect);     }      @reactprop(name = "capturemode")     public void setcapturemode(rctcameraview view, int capturemode) {         // todo - implement video mode     }      @reactprop(name = "capturetarget")     public void setcapturetarget(rctcameraview view, int capturetarget) {         // no reason handle props value here since it's passed again rctcameramodule capture method     }      @reactprop(name = "type")     public void settype(rctcameraview view, int type) {         view.setcameratype(type);     }      @reactprop(name = "torchmode")     public void settorchmode(rctcameraview view, int torchmode) {         view.settorchmode(torchmode);     }      @reactprop(name = "flashmode")     public void setflashmode(rctcameraview view, int flashmode) {         view.setflashmode(flashmode);     }      @reactprop(name = "orientation")     public void setorientation(rctcameraview view, int orientation) {         view.setorientation(orientation);     }      @reactprop(name = "captureaudio")     public void setcaptureaudio(rctcameraview view, boolean captureaudio) {         // todo - implement video mode     } } 

i got error, solution change the

public class rctcameraviewmanager extends simpleviewmanager<rctcameraview> 

to

public class rctcameraviewmanager extends viewgroupmanager<rctcameraview> 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -