Layout Behaviors


I want to use the Google Material Design Concept called “Bottom Sheet”. I am attempting to implement this as a plugin but I cannot seem to set a layout behavior. It seems that the suggested way by the Android documentation is use LayoutParams and call setBehavior. I have tried the following code but it I get an error message that CoordinatorLayoutParams cannot be cast to CommonLayoutParams.

private _android: any;

    public createNativeView(): any {
       this._android = new;
        return this._android;

    public onLoaded() {
        try {
            let params = this._android.getLayoutParams();
            let coordp = new;
        catch (ex) {


Did you get around to working on this?