hybrid-navigation 5.2.0 → 5.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -20
- package/android/src/main/java/com/navigation/androidx/AwesomeFragment.java +5 -13
- package/android/src/main/java/com/navigation/androidx/DefaultTabBarProvider.java +2 -2
- package/android/src/main/java/com/navigation/androidx/TabBarFragment.java +0 -50
- package/android/src/main/java/com/navigation/androidx/TabBarItem.java +0 -4
- package/android/src/main/java/com/reactnative/hybridnavigation/GlobalStyle.java +0 -7
- package/android/src/main/java/com/reactnative/hybridnavigation/HybridFragment.java +7 -43
- package/android/src/main/java/com/reactnative/hybridnavigation/NativeNavigation.java +5 -39
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactFragment.java +72 -136
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactManager.java +0 -20
- package/android/src/main/java/com/reactnative/hybridnavigation/ReactTabBarFragment.java +10 -21
- package/android/src/main/java/com/reactnative/hybridnavigation/navigator/ScreenNavigator.java +39 -87
- package/android/src/main/java/com/reactnative/hybridnavigation/navigator/TabNavigator.java +2 -16
- package/dist/NativeEvent.d.ts +1 -11
- package/dist/NativeNavigation.d.ts +7 -6
- package/dist/Navigation.d.ts +8 -22
- package/dist/Navigation.js +33 -175
- package/dist/NavigationComponentWrap.d.ts +3 -3
- package/dist/Navigator.d.ts +4 -5
- package/dist/Navigator.js +13 -37
- package/dist/Options.d.ts +3 -2
- package/dist/Route.d.ts +10 -35
- package/dist/handler/DispatchCommandHandler.d.ts +3 -18
- package/dist/handler/DispatchCommandHandler.js +17 -64
- package/dist/handler/LayoutCommandHandler.d.ts +2 -3
- package/dist/handler/LayoutCommandHandler.js +0 -3
- package/dist/handler/LeaveGuardHandler.d.ts +3 -3
- package/dist/handler/LeaveGuardHandler.js +57 -32
- package/dist/handler/LifecycleEventHandler.d.ts +2 -14
- package/dist/handler/LifecycleEventHandler.js +2 -79
- package/dist/handler/ResultEventHandler.d.ts +0 -1
- package/dist/handler/ResultEventHandler.js +0 -3
- package/dist/handler/SceneExitHandler.d.ts +3 -0
- package/dist/handler/SceneExitHandler.js +76 -0
- package/dist/hooks.d.ts +0 -3
- package/dist/hooks.js +21 -46
- package/dist/index.d.ts +1 -12
- package/dist/index.js +0 -3
- package/dist/router/index.d.ts +0 -1
- package/dist/router/index.js +43 -11
- package/dist/router/stack.d.ts +1 -1
- package/dist/sceneCoverage.d.ts +2 -0
- package/dist/sceneCoverage.js +25 -0
- package/dist/store.d.ts +0 -2
- package/dist/store.js +0 -4
- package/ios/HBDGlobalStyle.h +0 -1
- package/ios/HBDGlobalStyle.mm +0 -7
- package/ios/HybridNavigation.h +0 -1
- package/ios/Navigator/HBDScreenNavigator.mm +89 -237
- package/ios/Navigator/HBDStackNavigator.mm +3 -3
- package/ios/Navigator/HBDTabNavigator.mm +15 -30
- package/ios/React/HBDNativeNavigation.mm +4 -31
- package/ios/React/HBDReactBridgeManager.h +0 -5
- package/ios/React/HBDReactBridgeManager.mm +0 -17
- package/ios/ViewController/HBDReactViewController.h +3 -1
- package/ios/ViewController/HBDReactViewController.mm +42 -9
- package/ios/ViewController/HBDTabBarController.h +2 -11
- package/ios/ViewController/HBDTabBarController.mm +14 -170
- package/ios/ViewController/HBDViewController.h +0 -1
- package/ios/ViewController/HBDViewController.mm +9 -57
- package/ios/ViewController/UIViewController+HBD.h +2 -0
- package/ios/ViewController/UIViewController+HBD.mm +5 -0
- package/package.json +1 -3
- package/src/NativeEvent.ts +1 -12
- package/src/NativeNavigation.ts +8 -7
- package/src/Navigation.ts +50 -281
- package/src/NavigationComponentWrap.tsx +3 -11
- package/src/Navigator.ts +15 -46
- package/src/Options.ts +3 -3
- package/src/Route.ts +13 -56
- package/src/handler/DispatchCommandHandler.ts +29 -111
- package/src/handler/LayoutCommandHandler.ts +2 -6
- package/src/handler/LeaveGuardHandler.ts +65 -32
- package/src/handler/LifecycleEventHandler.ts +22 -122
- package/src/handler/ResultEventHandler.ts +0 -6
- package/src/handler/SceneExitHandler.ts +86 -0
- package/src/hooks.ts +18 -53
- package/src/index.ts +0 -14
- package/src/router/index.ts +45 -12
- package/src/router/stack.ts +1 -1
- package/src/sceneCoverage.ts +30 -0
- package/src/store.ts +0 -5
- package/dist/defineRoutes.d.ts +0 -19
- package/dist/defineRoutes.js +0 -6
- package/dist/handler/PresentationCoordinator.d.ts +0 -39
- package/dist/handler/PresentationCoordinator.js +0 -673
- package/dist/handler/TabEventHandler.d.ts +0 -8
- package/dist/handler/TabEventHandler.js +0 -25
- package/dist/reveal.d.ts +0 -46
- package/dist/reveal.js +0 -431
- package/dist/routeGraph.d.ts +0 -12
- package/dist/routeGraph.js +0 -68
- package/dist/testing.d.ts +0 -82
- package/dist/testing.js +0 -253
- package/ios/ViewController/HBDTabBarRenderer.h +0 -28
- package/src/defineRoutes.ts +0 -46
- package/src/handler/PresentationCoordinator.ts +0 -806
- package/src/handler/TabEventHandler.ts +0 -31
- package/src/reveal.ts +0 -565
- package/src/routeGraph.ts +0 -87
- package/src/testing.ts +0 -402
- package/testing.d.ts +0 -1
- package/testing.js +0 -3
package/dist/hooks.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useContext, useEffect, useEffectEvent, useLayoutEffect, useState } from 'react';
|
|
2
|
+
import { registerExitHandler } from './handler/SceneExitHandler';
|
|
2
3
|
import Navigation from './Navigation';
|
|
3
4
|
import { NavigationContext } from './Navigator';
|
|
4
|
-
import { presentationCoordinator } from './handler/PresentationCoordinator';
|
|
5
5
|
export function useNavigator() {
|
|
6
6
|
const navigator = useContext(NavigationContext);
|
|
7
7
|
if (!navigator) {
|
|
@@ -23,28 +23,6 @@ export function useSceneState() {
|
|
|
23
23
|
}, [navigator.sceneId]);
|
|
24
24
|
return state;
|
|
25
25
|
}
|
|
26
|
-
export function useIsVisible() {
|
|
27
|
-
return useSceneState() === 'visible';
|
|
28
|
-
}
|
|
29
|
-
export function useSceneCovered() {
|
|
30
|
-
const navigator = useNavigator();
|
|
31
|
-
const [covered, setCovered] = useState(() => presentationCoordinator.isSceneVisuallyCoveredSync(navigator.sceneId));
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
setCovered(presentationCoordinator.isSceneVisuallyCoveredSync(navigator.sceneId));
|
|
34
|
-
const subscription = Navigation.addSceneCoverageListener(navigator.sceneId, next => {
|
|
35
|
-
setCovered(next);
|
|
36
|
-
});
|
|
37
|
-
return () => {
|
|
38
|
-
subscription.remove();
|
|
39
|
-
};
|
|
40
|
-
}, [navigator.sceneId]);
|
|
41
|
-
return covered;
|
|
42
|
-
}
|
|
43
|
-
export function useIsTopmost() {
|
|
44
|
-
const state = useSceneState();
|
|
45
|
-
const covered = useSceneCovered();
|
|
46
|
-
return state === 'visible' && !covered;
|
|
47
|
-
}
|
|
48
26
|
export function useSceneExitHandler(handler) {
|
|
49
27
|
const navigator = useNavigator();
|
|
50
28
|
const enabled = Boolean(handler);
|
|
@@ -57,27 +35,22 @@ export function useSceneExitHandler(handler) {
|
|
|
57
35
|
if (!enabled) {
|
|
58
36
|
return;
|
|
59
37
|
}
|
|
60
|
-
|
|
38
|
+
return registerExitHandler(navigator.sceneId, {
|
|
61
39
|
onExit: () => onExit(),
|
|
62
40
|
onRestore: reason => onRestore(reason),
|
|
63
41
|
...(exitTimeoutMs !== undefined ? { exitTimeoutMs } : {}),
|
|
64
42
|
});
|
|
65
|
-
return () => {
|
|
66
|
-
subscription.remove();
|
|
67
|
-
};
|
|
68
43
|
}, [enabled, exitTimeoutMs, navigator.sceneId]);
|
|
69
44
|
}
|
|
70
45
|
export function useBeforeRemove(enabled, onBeforeRemove, options) {
|
|
71
46
|
const navigator = useNavigator();
|
|
72
47
|
const eventCallback = useEffectEvent(onBeforeRemove);
|
|
73
|
-
const actionsKey = options?.actions
|
|
48
|
+
const actionsKey = options?.actions?.join(',');
|
|
74
49
|
useEffect(() => {
|
|
75
50
|
if (!enabled) {
|
|
76
51
|
return;
|
|
77
52
|
}
|
|
78
|
-
const actions = actionsKey
|
|
79
|
-
? actionsKey.split(',')
|
|
80
|
-
: undefined;
|
|
53
|
+
const actions = actionsKey?.split(',').filter(Boolean);
|
|
81
54
|
const subscription = Navigation.addBeforeRemoveListener(navigator.sceneId, event => eventCallback(event), actions ? { actions } : undefined);
|
|
82
55
|
return () => {
|
|
83
56
|
subscription.remove();
|
|
@@ -88,26 +61,28 @@ export function useVisibleEffect(callback) {
|
|
|
88
61
|
const navigator = useNavigator();
|
|
89
62
|
const event = useEffectEvent(callback);
|
|
90
63
|
useEffect(() => {
|
|
91
|
-
let
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
64
|
+
let active = false;
|
|
65
|
+
let cleanup;
|
|
66
|
+
function update(state) {
|
|
67
|
+
const visible = state === 'visible';
|
|
68
|
+
if (active === visible)
|
|
69
|
+
return;
|
|
70
|
+
active = visible;
|
|
71
|
+
if (visible) {
|
|
72
|
+
cleanup = event();
|
|
98
73
|
}
|
|
99
74
|
else {
|
|
100
|
-
if (typeof
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
destructor = undefined;
|
|
75
|
+
if (typeof cleanup === 'function')
|
|
76
|
+
cleanup();
|
|
77
|
+
cleanup = undefined;
|
|
104
78
|
}
|
|
105
|
-
}
|
|
79
|
+
}
|
|
80
|
+
const subscription = Navigation.addLifecycleListener(navigator.sceneId, update);
|
|
81
|
+
update(navigator.lifecycleState);
|
|
106
82
|
return () => {
|
|
107
83
|
subscription.remove();
|
|
108
|
-
if (typeof
|
|
109
|
-
|
|
110
|
-
}
|
|
84
|
+
if (typeof cleanup === 'function')
|
|
85
|
+
cleanup();
|
|
111
86
|
};
|
|
112
87
|
}, [navigator]);
|
|
113
88
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -4,14 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export interface NavigationParamList {
|
|
6
6
|
}
|
|
7
|
-
/**
|
|
8
|
-
* Augment this interface via `declare module 'hybrid-navigation'` to configure
|
|
9
|
-
* route type checking. Set `allowUnregisteredRoutes: true` during incremental
|
|
10
|
-
* migration so declared routes get strict checking while unmigrated routes
|
|
11
|
-
* remain accepted as `string & {}`.
|
|
12
|
-
*/
|
|
13
|
-
export interface NavigationTypeConfig {
|
|
14
|
-
}
|
|
15
7
|
/**
|
|
16
8
|
* Augment this interface via `declare module 'hybrid-navigation'` to register
|
|
17
9
|
* strongly typed custom container layouts alongside built-in layouts.
|
|
@@ -21,15 +13,12 @@ export interface CustomLayoutMap {
|
|
|
21
13
|
declare const Navigation: import("./Navigation").Navigation;
|
|
22
14
|
export default Navigation;
|
|
23
15
|
export { RESULT_OK, RESULT_CANCEL, RESULT_BLOCK } from './Navigation';
|
|
24
|
-
export type { DispatchParams, GlobalSceneLifecycleListener,
|
|
16
|
+
export type { DispatchParams, GlobalSceneLifecycleListener, HOC, InterceptParams, Navigation, NavigationInterceptor, NavigationSubscription, RootLayoutListener, SceneLifecycleListener, } from './Navigation';
|
|
25
17
|
export { withNavigationItem } from './NavigationComponentWrap';
|
|
26
18
|
export type { NavigationProps } from './NavigationComponentWrap';
|
|
27
19
|
export * from './Navigator';
|
|
28
20
|
export * from './hooks';
|
|
29
21
|
export * from './router';
|
|
30
|
-
export * from './routeGraph';
|
|
31
|
-
export * from './reveal';
|
|
32
|
-
export * from './defineRoutes';
|
|
33
22
|
export * from './DeepLink';
|
|
34
23
|
export * from './Route';
|
|
35
24
|
export * from './Options';
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,6 @@ export { withNavigationItem } from './NavigationComponentWrap';
|
|
|
6
6
|
export * from './Navigator';
|
|
7
7
|
export * from './hooks';
|
|
8
8
|
export * from './router';
|
|
9
|
-
export * from './routeGraph';
|
|
10
|
-
export * from './reveal';
|
|
11
|
-
export * from './defineRoutes';
|
|
12
9
|
export * from './DeepLink';
|
|
13
10
|
export * from './Route';
|
|
14
11
|
export * from './Options';
|
package/dist/router/index.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ declare class Router {
|
|
|
15
15
|
private inflateRouteData;
|
|
16
16
|
private interceptors;
|
|
17
17
|
addInterceptor(interceptor: RouteInterceptor): NavigationSubscription;
|
|
18
|
-
removeInterceptor(interceptor: RouteInterceptor): void;
|
|
19
18
|
private intercept;
|
|
20
19
|
private pathToRoute;
|
|
21
20
|
private routeDependencies;
|
package/dist/router/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import { ScreenRouteHandler } from './screen';
|
|
|
4
4
|
import { TabsRouteHandler } from './tabs';
|
|
5
5
|
import { DrawerRouteHandler } from './drawer';
|
|
6
6
|
import Navigation from '../Navigation';
|
|
7
|
-
import { dismissPresentedLayers } from '../reveal';
|
|
8
7
|
import { getRouteConfigs, getRouteConfigVersion } from '../routeConfigRegistry';
|
|
9
8
|
function safeDecodeURIComponent(value) {
|
|
10
9
|
try {
|
|
@@ -30,6 +29,9 @@ function queryParams(queryString) {
|
|
|
30
29
|
return result;
|
|
31
30
|
}, {});
|
|
32
31
|
}
|
|
32
|
+
function containsScene(node, sceneId) {
|
|
33
|
+
return node.sceneId === sceneId || !!node.children?.some(child => containsScene(child, sceneId));
|
|
34
|
+
}
|
|
33
35
|
class Router {
|
|
34
36
|
constructor() {
|
|
35
37
|
this.registerRouteHandler('screen', new ScreenRouteHandler());
|
|
@@ -78,12 +80,11 @@ class Router {
|
|
|
78
80
|
addInterceptor(interceptor) {
|
|
79
81
|
this.interceptors.push(interceptor);
|
|
80
82
|
return {
|
|
81
|
-
remove: () =>
|
|
83
|
+
remove: () => {
|
|
84
|
+
this.interceptors = this.interceptors.filter(item => item !== interceptor);
|
|
85
|
+
},
|
|
82
86
|
};
|
|
83
87
|
}
|
|
84
|
-
removeInterceptor(interceptor) {
|
|
85
|
-
this.interceptors = this.interceptors.filter(item => item !== interceptor);
|
|
86
|
-
}
|
|
87
88
|
async intercept(path) {
|
|
88
89
|
for (const interceptor of this.interceptors.slice()) {
|
|
89
90
|
const result = interceptor(path);
|
|
@@ -169,12 +170,36 @@ class Router {
|
|
|
169
170
|
message: `No route matched path: ${path}`,
|
|
170
171
|
};
|
|
171
172
|
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
let snapshot = await Navigation.navigationSnapshot();
|
|
174
|
+
const generation = snapshot.rootGeneration;
|
|
175
|
+
const dismissed = new Set();
|
|
176
|
+
const maxSteps = Math.max(snapshot.layers.length, 12);
|
|
177
|
+
while (snapshot.layers.length > 1) {
|
|
178
|
+
const layer = snapshot.layers[snapshot.layers.length - 1];
|
|
179
|
+
const current = snapshot.currentRoute;
|
|
180
|
+
if (!current || !containsScene(layer, current.sceneId)) {
|
|
181
|
+
return { ok: false, code: 'scene_not_found', message: 'Current scene is not in the top layer.' };
|
|
182
|
+
}
|
|
183
|
+
if (dismissed.has(layer.sceneId) || dismissed.size >= maxSteps) {
|
|
184
|
+
return { ok: false, code: 'invalid_action', message: 'Unable to finish dismissing presented layers.' };
|
|
185
|
+
}
|
|
186
|
+
if (layer.mode !== 'modal' && layer.mode !== 'present') {
|
|
187
|
+
return { ok: false, code: 'invalid_action', message: `Unexpected layer mode: ${layer.mode}` };
|
|
188
|
+
}
|
|
189
|
+
dismissed.add(layer.sceneId);
|
|
190
|
+
const action = layer.mode === 'modal' ? 'hideModal' : 'dismiss';
|
|
191
|
+
const result = await Navigation.dispatch(current.sceneId, action, {
|
|
192
|
+
from: current.moduleName,
|
|
193
|
+
target: 'self',
|
|
194
|
+
});
|
|
195
|
+
snapshot = await Navigation.navigationSnapshot();
|
|
196
|
+
if (snapshot.rootGeneration !== generation) {
|
|
197
|
+
return { ok: false, code: 'superseded', message: 'Root layout changed during navigation.' };
|
|
198
|
+
}
|
|
199
|
+
if (!result.ok)
|
|
200
|
+
return result;
|
|
175
201
|
}
|
|
176
|
-
const
|
|
177
|
-
const routeGraph = graphArray[0];
|
|
202
|
+
const routeGraph = snapshot.layers[0];
|
|
178
203
|
if (!routeGraph) {
|
|
179
204
|
return {
|
|
180
205
|
ok: false,
|
|
@@ -186,7 +211,14 @@ class Router {
|
|
|
186
211
|
if (consumed) {
|
|
187
212
|
return routeResult;
|
|
188
213
|
}
|
|
189
|
-
|
|
214
|
+
snapshot = await Navigation.navigationSnapshot();
|
|
215
|
+
if (snapshot.rootGeneration !== generation) {
|
|
216
|
+
return { ok: false, code: 'superseded', message: 'Root layout changed during navigation.' };
|
|
217
|
+
}
|
|
218
|
+
if (snapshot.layers.length > 1) {
|
|
219
|
+
return { ok: false, code: 'covered', message: 'A new layer was presented during navigation.' };
|
|
220
|
+
}
|
|
221
|
+
const currentRoute = snapshot.currentRoute;
|
|
190
222
|
if (!currentRoute) {
|
|
191
223
|
return {
|
|
192
224
|
ok: false,
|
package/dist/router/stack.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { LayoutMode, RouteGraph, RouteHandler, RouteHandleResult, RouteInfo } from '../Route';
|
|
2
2
|
export interface StackGraph extends RouteGraph {
|
|
3
3
|
layout: 'stack';
|
|
4
4
|
sceneId: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function isSceneCoveredInLayers(layers, sceneId, purpose) {
|
|
2
|
+
// Siblings overlap in presentation layers and stacks. Only visual queries also consider tabs.
|
|
3
|
+
function find(nodes, frontIndex) {
|
|
4
|
+
for (const [index, node] of nodes.entries()) {
|
|
5
|
+
const coveredBySibling = frontIndex !== undefined && index !== frontIndex;
|
|
6
|
+
if (node.sceneId === sceneId)
|
|
7
|
+
return coveredBySibling;
|
|
8
|
+
if (!node.children?.length)
|
|
9
|
+
continue;
|
|
10
|
+
let frontChild;
|
|
11
|
+
if (node.layout === 'stack') {
|
|
12
|
+
frontChild = node.children.length - 1;
|
|
13
|
+
}
|
|
14
|
+
else if (purpose === 'visual' && node.layout === 'tabs') {
|
|
15
|
+
if ('selectedIndex' in node && typeof node.selectedIndex === 'number') {
|
|
16
|
+
frontChild = node.selectedIndex;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
const nested = find(node.children, frontChild);
|
|
20
|
+
if (nested !== undefined)
|
|
21
|
+
return coveredBySibling || nested;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return find(layers, layers.length - 1) ?? false;
|
|
25
|
+
}
|
package/dist/store.d.ts
CHANGED
|
@@ -2,11 +2,9 @@ import type { Navigator } from './Navigator';
|
|
|
2
2
|
declare function addNavigator(sceneId: string, navigator: Navigator): void;
|
|
3
3
|
declare function removeNavigator(sceneId: string): void;
|
|
4
4
|
declare function getNavigator(sceneId: string): Navigator<string> | undefined;
|
|
5
|
-
declare function clear(): void;
|
|
6
5
|
declare const _default: {
|
|
7
6
|
addNavigator: typeof addNavigator;
|
|
8
7
|
removeNavigator: typeof removeNavigator;
|
|
9
8
|
getNavigator: typeof getNavigator;
|
|
10
|
-
clear: typeof clear;
|
|
11
9
|
};
|
|
12
10
|
export default _default;
|
package/dist/store.js
CHANGED
package/ios/HBDGlobalStyle.h
CHANGED
|
@@ -10,7 +10,6 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
10
10
|
+ (HBDGlobalStyle *)globalStyle;
|
|
11
11
|
|
|
12
12
|
@property(nonatomic, strong, readonly) UIColor *screenBackgroundColor;
|
|
13
|
-
@property(nonatomic, strong, readonly) UIColor *modalBackgroundColor;
|
|
14
13
|
@property(nonatomic, assign, readonly) BOOL injectInitialMetrics;
|
|
15
14
|
@property(nonatomic, assign, readonly) BOOL prewarmPush;
|
|
16
15
|
@property(nonatomic, assign, readonly) UIBarStyle statusBarStyle;
|
package/ios/HBDGlobalStyle.mm
CHANGED
|
@@ -41,13 +41,6 @@
|
|
|
41
41
|
_screenBackgroundColor = UIColor.whiteColor;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
NSString *modalBackgroundColor = _options[@"modalBackgroundColor"];
|
|
45
|
-
if (modalBackgroundColor) {
|
|
46
|
-
_modalBackgroundColor = [HBDUtils colorWithHexString:modalBackgroundColor];
|
|
47
|
-
} else {
|
|
48
|
-
_modalBackgroundColor = UIColor.clearColor;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
44
|
id injectInitialMetrics = _options[@"injectInitialMetrics"];
|
|
52
45
|
_injectInitialMetrics = [injectInitialMetrics isKindOfClass:[NSNumber class]] ? [injectInitialMetrics boolValue] : NO;
|
|
53
46
|
|
package/ios/HybridNavigation.h
CHANGED