|
@@ -10,8 +10,11 @@ function registerScreen(screenID, generator) {
|
10
|
10
|
}
|
11
|
11
|
|
12
|
12
|
function registerComponent(screenID, generator, store = undefined, Provider = undefined) {
|
13
|
|
- if (store && Provider) return _registerComponentRedux(screenID, generator, store, Provider);
|
14
|
|
- else return _registerComponentNoRedux(screenID, generator);
|
|
13
|
+ if (store && Provider) {
|
|
14
|
+ return _registerComponentRedux(screenID, generator, store, Provider);
|
|
15
|
+ } else {
|
|
16
|
+ return _registerComponentNoRedux(screenID, generator);
|
|
17
|
+ }
|
15
|
18
|
}
|
16
|
19
|
|
17
|
20
|
function _registerComponentNoRedux(screenID, generator) {
|
|
@@ -26,7 +29,7 @@ function _registerComponentNoRedux(screenID, generator) {
|
26
|
29
|
);
|
27
|
30
|
}
|
28
|
31
|
};
|
29
|
|
- }
|
|
32
|
+ };
|
30
|
33
|
registerScreen(screenID, generatorWrapper);
|
31
|
34
|
return generatorWrapper;
|
32
|
35
|
}
|
|
@@ -45,7 +48,7 @@ function _registerComponentRedux(screenID, generator, store, Provider) {
|
45
|
48
|
);
|
46
|
49
|
}
|
47
|
50
|
};
|
48
|
|
- }
|
|
51
|
+ };
|
49
|
52
|
registerScreen(screenID, generatorWrapper);
|
50
|
53
|
return generatorWrapper;
|
51
|
54
|
}
|