|
@@ -1,18 +0,0 @@
|
1
|
|
-package com.reactnativenavigation;
|
2
|
|
-
|
3
|
|
-import com.reactnativenavigation.viewcontrollers.ViewController;
|
4
|
|
-
|
5
|
|
-import java.util.HashMap;
|
6
|
|
-import java.util.Map;
|
7
|
|
-
|
8
|
|
-public class Store {
|
9
|
|
- private Map<String, ViewController> viewControllersById = new HashMap<>();
|
10
|
|
-
|
11
|
|
- public void setViewController(String id, ViewController viewController) {
|
12
|
|
- viewControllersById.put(id, viewController);
|
13
|
|
- }
|
14
|
|
-
|
15
|
|
- public ViewController getViewController(String id) {
|
16
|
|
- return viewControllersById.get(id);
|
17
|
|
- }
|
18
|
|
-}
|