|  | @@ -1,25 +0,0 @@
 | 
	
		
			
			| 1 |  | -package com.reactnativenavigation.views;
 | 
	
		
			
			| 2 |  | -
 | 
	
		
			
			| 3 |  | -import android.content.Context;
 | 
	
		
			
			| 4 |  | -import android.support.annotation.Nullable;
 | 
	
		
			
			| 5 |  | -import android.view.Menu;
 | 
	
		
			
			| 6 |  | -import android.view.MenuItem;
 | 
	
		
			
			| 7 |  | -import android.view.View;
 | 
	
		
			
			| 8 |  | -
 | 
	
		
			
			| 9 |  | -import com.reactnativenavigation.params.NavigationParams;
 | 
	
		
			
			| 10 |  | -import com.reactnativenavigation.params.TitleBarButtonParams;
 | 
	
		
			
			| 11 |  | -
 | 
	
		
			
			| 12 |  | -class TitleBarCustomComponentButton extends TitleBarButton {
 | 
	
		
			
			| 13 |  | -    TitleBarCustomComponentButton(Menu menu, View parent, TitleBarButtonParams buttonParams, @Nullable String navigatorEventId) {
 | 
	
		
			
			| 14 |  | -        super(menu, parent, buttonParams, navigatorEventId);
 | 
	
		
			
			| 15 |  | -    }
 | 
	
		
			
			| 16 |  | -
 | 
	
		
			
			| 17 |  | -    @Override
 | 
	
		
			
			| 18 |  | -    MenuItem addToMenu(int index) {
 | 
	
		
			
			| 19 |  | -        throw new RuntimeException("Can't add custom component to menu");
 | 
	
		
			
			| 20 |  | -    }
 | 
	
		
			
			| 21 |  | -
 | 
	
		
			
			| 22 |  | -    View createView(Context context) {
 | 
	
		
			
			| 23 |  | -        return new ContentView(context, buttonParams.componentName, NavigationParams.EMPTY, buttonParams.componentProps);
 | 
	
		
			
			| 24 |  | -    }
 | 
	
		
			
			| 25 |  | -}
 |