Guy Carmeli 8 years ago
parent
commit
1fe0c296b8

+ 2
- 7
android/app/src/main/java/com/reactnativenavigation/views/SideMenu.java View File

@@ -3,7 +3,6 @@ package com.reactnativenavigation.views;
3 3
 import android.content.Context;
4 4
 import android.support.v4.widget.DrawerLayout;
5 5
 import android.view.Gravity;
6
-import android.view.ViewGroup;
7 6
 import android.widget.RelativeLayout;
8 7
 
9 8
 import com.reactnativenavigation.params.SideMenuParams;
@@ -67,12 +66,8 @@ public class SideMenu extends DrawerLayout {
67 66
     }
68 67
 
69 68
     private void createSideMenu(SideMenuParams sideMenuParams) {
70
-        sideMenuView = new ContentView(getContext(),
71
-                sideMenuParams.screenId,
72
-                sideMenuParams.navigationParams);
73
-
74
-        DrawerLayout.LayoutParams lp =
75
-                new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.MATCH_PARENT);
69
+        sideMenuView = new ContentView(getContext(), sideMenuParams.screenId, sideMenuParams.navigationParams);
70
+        LayoutParams lp = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.MATCH_PARENT);
76 71
         lp.gravity = Gravity.START;
77 72
         addView(sideMenuView, lp);
78 73
     }