|  | @@ -8,7 +8,6 @@ import com.facebook.react.bridge.ReactContextBaseJavaModule;
 | 
	
		
			
			| 8 | 8 |  import com.facebook.react.bridge.ReactMethod;
 | 
	
		
			
			| 9 | 9 |  import com.facebook.react.bridge.ReadableMap;
 | 
	
		
			
			| 10 | 10 |  import com.reactnativenavigation.NavigationActivity;
 | 
	
		
			
			| 11 |  | -import com.reactnativenavigation.Store;
 | 
	
		
			
			| 12 | 11 |  import com.reactnativenavigation.layout.LayoutFactory;
 | 
	
		
			
			| 13 | 12 |  import com.reactnativenavigation.layout.LayoutNode;
 | 
	
		
			
			| 14 | 13 |  import com.reactnativenavigation.parse.JSONParser;
 | 
	
	
		
			
			|  | @@ -20,12 +19,10 @@ import com.reactnativenavigation.viewcontrollers.ViewController;
 | 
	
		
			
			| 20 | 19 |  public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 21 | 20 |  	private static final String NAME = "RNNBridgeModule";
 | 
	
		
			
			| 22 | 21 |  	private final ReactInstanceManager reactInstanceManager;
 | 
	
		
			
			| 23 |  | -	private final Store store;
 | 
	
		
			
			| 24 | 22 |  
 | 
	
		
			
			| 25 |  | -	public NavigationModule(final ReactApplicationContext reactContext, final ReactInstanceManager reactInstanceManager, final Store store) {
 | 
	
		
			
			|  | 23 | +	public NavigationModule(final ReactApplicationContext reactContext, final ReactInstanceManager reactInstanceManager) {
 | 
	
		
			
			| 26 | 24 |  		super(reactContext);
 | 
	
		
			
			| 27 | 25 |  		this.reactInstanceManager = reactInstanceManager;
 | 
	
		
			
			| 28 |  | -		this.store = store;
 | 
	
		
			
			| 29 | 26 |  	}
 | 
	
		
			
			| 30 | 27 |  
 | 
	
		
			
			| 31 | 28 |  	@Override
 | 
	
	
		
			
			|  | @@ -39,7 +36,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 39 | 36 |  			@Override
 | 
	
		
			
			| 40 | 37 |  			public void run() {
 | 
	
		
			
			| 41 | 38 |  				final LayoutNode layoutTree = LayoutNodeParser.parse(JSONParser.parse(rawLayoutTree));
 | 
	
		
			
			| 42 |  | -				final ViewController viewController = newLayoutFactory().createAndSaveToStore(layoutTree);
 | 
	
		
			
			|  | 39 | +				final ViewController viewController = newLayoutFactory().create(layoutTree);
 | 
	
		
			
			| 43 | 40 |  				navigator().setRoot(viewController);
 | 
	
		
			
			| 44 | 41 |  			}
 | 
	
		
			
			| 45 | 42 |  		});
 | 
	
	
		
			
			|  | @@ -51,8 +48,8 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 51 | 48 |  			@Override
 | 
	
		
			
			| 52 | 49 |  			public void run() {
 | 
	
		
			
			| 53 | 50 |  				final LayoutNode layoutTree = LayoutNodeParser.parse(JSONParser.parse(rawLayoutTree));
 | 
	
		
			
			| 54 |  | -				final ViewController viewController = newLayoutFactory().createAndSaveToStore(layoutTree);
 | 
	
		
			
			| 55 |  | -				store.getViewController(onContainerId).getStackController().push(viewController);
 | 
	
		
			
			|  | 51 | +				final ViewController viewController = newLayoutFactory().create(layoutTree);
 | 
	
		
			
			|  | 52 | +//				store.getViewController(onContainerId).getStackController().push(viewController);
 | 
	
		
			
			| 56 | 53 |  			}
 | 
	
		
			
			| 57 | 54 |  		});
 | 
	
		
			
			| 58 | 55 |  	}
 | 
	
	
		
			
			|  | @@ -62,7 +59,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 62 | 59 |  		handle(new Runnable() {
 | 
	
		
			
			| 63 | 60 |  			@Override
 | 
	
		
			
			| 64 | 61 |  			public void run() {
 | 
	
		
			
			| 65 |  | -				store.getViewController(onContainerId).getStackController().pop(store.getViewController(onContainerId));
 | 
	
		
			
			|  | 62 | +//				store.getViewController(onContainerId).getStackController().pop(store.getViewController(onContainerId));
 | 
	
		
			
			| 66 | 63 |  			}
 | 
	
		
			
			| 67 | 64 |  		});
 | 
	
		
			
			| 68 | 65 |  	}
 | 
	
	
		
			
			|  | @@ -72,7 +69,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 72 | 69 |  		handle(new Runnable() {
 | 
	
		
			
			| 73 | 70 |  			@Override
 | 
	
		
			
			| 74 | 71 |  			public void run() {
 | 
	
		
			
			| 75 |  | -				store.getViewController(onContainerId).getStackController().popTo(store.getViewController(toContainerId));
 | 
	
		
			
			|  | 72 | +//				store.getViewController(onContainerId).getStackController().popTo(store.getViewController(toContainerId));
 | 
	
		
			
			| 76 | 73 |  			}
 | 
	
		
			
			| 77 | 74 |  		});
 | 
	
		
			
			| 78 | 75 |  	}
 | 
	
	
		
			
			|  | @@ -82,7 +79,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 82 | 79 |  		handle(new Runnable() {
 | 
	
		
			
			| 83 | 80 |  			@Override
 | 
	
		
			
			| 84 | 81 |  			public void run() {
 | 
	
		
			
			| 85 |  | -				store.getViewController(onContainerId).getStackController().popToRoot();
 | 
	
		
			
			|  | 82 | +//				store.getViewController(onContainerId).getStackController().popToRoot();
 | 
	
		
			
			| 86 | 83 |  			}
 | 
	
		
			
			| 87 | 84 |  		});
 | 
	
		
			
			| 88 | 85 |  	}
 | 
	
	
		
			
			|  | @@ -97,7 +94,7 @@ public class NavigationModule extends ReactContextBaseJavaModule {
 | 
	
		
			
			| 97 | 94 |  
 | 
	
		
			
			| 98 | 95 |  	@NonNull
 | 
	
		
			
			| 99 | 96 |  	private LayoutFactory newLayoutFactory() {
 | 
	
		
			
			| 100 |  | -		return new LayoutFactory(activity(), reactInstanceManager, store);
 | 
	
		
			
			|  | 97 | +		return new LayoutFactory(activity(), reactInstanceManager);
 | 
	
		
			
			| 101 | 98 |  	}
 | 
	
		
			
			| 102 | 99 |  
 | 
	
		
			
			| 103 | 100 |  	private void handle(Runnable task) {
 |