package com.reactnativenavigation.layout;

import android.content.Context;
import android.support.v4.widget.DrawerLayout;

public class SideMenuLayout extends DrawerLayout {
    public SideMenuLayout(Context context) {
        super(context);
    }
}

@@ -114,16 +114,42 @@
 rLayout;
+%0Aimport android.view.View;
 %0A%0Apublic
@@ -195,77 +195,556 @@
 out 
-%7B%0A    public SideMenuLayout(Context context) %7B%0A        super(context)
+implements StackLayout %7B%0A    private StackLayout stackLayout;%0A%0A    public SideMenuLayout(Context context) %7B%0A        super(context);%0A    %7D%0A%0A    @Override%0A    public void addView(View child) %7B%0A        super.addView(child);%0A        if (child instanceof StackLayout) %7B%0A            stackLayout = (StackLayout) child;%0A        %7D%0A    %7D%0A%0A    @Override%0A    public void push(View view) %7B%0A        stackLayout.push(view);%0A    %7D%0A%0A    @Override%0A    public void pop() %7B%0A        stackLayout.pop();%0A    %7D%0A%0A    @Override%0A    public View asView() %7B%0A        return this
 ;%0A  

SideMenu is StackLayout