|  | @@ -1,6 +1,7 @@
 | 
	
		
			
			| 1 | 1 |  package com.reactnativenavigation.views;
 | 
	
		
			
			| 2 | 2 |  
 | 
	
		
			
			| 3 | 3 |  import android.content.Context;
 | 
	
		
			
			|  | 4 | +import android.support.v4.view.GravityCompat;
 | 
	
		
			
			| 4 | 5 |  import android.support.v4.widget.DrawerLayout;
 | 
	
		
			
			| 5 | 6 |  import android.view.Gravity;
 | 
	
		
			
			| 6 | 7 |  import android.widget.RelativeLayout;
 | 
	
	
		
			
			|  | @@ -45,7 +46,7 @@ public class SideMenu extends DrawerLayout {
 | 
	
		
			
			| 45 | 46 |      }
 | 
	
		
			
			| 46 | 47 |  
 | 
	
		
			
			| 47 | 48 |      public void toggleVisible(boolean animated) {
 | 
	
		
			
			| 48 |  | -        if (isShown()) {
 | 
	
		
			
			|  | 49 | +        if (isDrawerOpen(GravityCompat.START)) {
 | 
	
		
			
			| 49 | 50 |              closeDrawer(animated);
 | 
	
		
			
			| 50 | 51 |          } else {
 | 
	
		
			
			| 51 | 52 |              openDrawer(animated);
 |