hybrid-navigation 2.16.0-beta.5 → 2.16.0-beta.6
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/android/src/main/java/com/reactnative/hybridnavigation/GardenModule.java +2 -50
- package/ios/HybridNavigation/ReactBridge/HBDGardenModule.m +0 -35
- package/lib/Navigation.d.ts +16 -4
- package/lib/Navigation.js +12 -10
- package/lib/Options.d.ts +8 -5
- package/package.json +1 -1
- package/src/Navigation.ts +28 -14
- package/src/Options.ts +10 -5
|
@@ -13,11 +13,9 @@ import android.os.Bundle;
|
|
|
13
13
|
|
|
14
14
|
import androidx.annotation.NonNull;
|
|
15
15
|
import androidx.annotation.Nullable;
|
|
16
|
-
import androidx.drawerlayout.widget.DrawerLayout;
|
|
17
16
|
import androidx.fragment.app.FragmentManager;
|
|
18
17
|
|
|
19
18
|
import com.facebook.common.logging.FLog;
|
|
20
|
-
import com.facebook.react.bridge.JavaOnlyMap;
|
|
21
19
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
22
20
|
import com.facebook.react.bridge.ReactContext;
|
|
23
21
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
@@ -25,7 +23,6 @@ import com.facebook.react.bridge.ReactMethod;
|
|
|
25
23
|
import com.facebook.react.bridge.ReadableArray;
|
|
26
24
|
import com.facebook.react.bridge.ReadableMap;
|
|
27
25
|
import com.facebook.react.bridge.UiThreadUtil;
|
|
28
|
-
import com.facebook.react.bridge.WritableMap;
|
|
29
26
|
import com.facebook.react.uimanager.PixelUtil;
|
|
30
27
|
import com.navigation.androidx.AwesomeFragment;
|
|
31
28
|
import com.navigation.androidx.DrawerFragment;
|
|
@@ -75,32 +72,7 @@ public class GardenModule extends ReactContextBaseJavaModule {
|
|
|
75
72
|
}
|
|
76
73
|
});
|
|
77
74
|
}
|
|
78
|
-
|
|
79
|
-
@ReactMethod
|
|
80
|
-
public void setLeftBarButtonItem(final String sceneId, @Nullable final ReadableMap readableMap) {
|
|
81
|
-
updateOptions(sceneId, readableMap, "leftBarButtonItem");
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
@ReactMethod
|
|
85
|
-
public void setRightBarButtonItem(final String sceneId, @Nullable final ReadableMap readableMap) {
|
|
86
|
-
updateOptions(sceneId, readableMap, "rightBarButtonItem");
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@ReactMethod
|
|
90
|
-
public void setLeftBarButtonItems(final String sceneId, @Nullable final ReadableArray readableArray) {
|
|
91
|
-
updateOptions(sceneId, readableArray, "leftBarButtonItems");
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@ReactMethod
|
|
95
|
-
public void setRightBarButtonItems(final String sceneId, @Nullable final ReadableArray readableArray) {
|
|
96
|
-
updateOptions(sceneId, readableArray, "rightBarButtonItems");
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@ReactMethod
|
|
100
|
-
public void setTitleItem(final String sceneId, final ReadableMap readableMap) {
|
|
101
|
-
updateOptions(sceneId, readableMap, "titleItem");
|
|
102
|
-
}
|
|
103
|
-
|
|
75
|
+
|
|
104
76
|
@ReactMethod
|
|
105
77
|
public void updateOptions(final String sceneId, final ReadableMap readableMap) {
|
|
106
78
|
FLog.i(TAG, "update options:" + readableMap);
|
|
@@ -111,27 +83,7 @@ public class GardenModule extends ReactContextBaseJavaModule {
|
|
|
111
83
|
}
|
|
112
84
|
});
|
|
113
85
|
}
|
|
114
|
-
|
|
115
|
-
private void updateOptions(String sceneId, @Nullable ReadableMap readableMap, String key) {
|
|
116
|
-
WritableMap writableMap = new JavaOnlyMap();
|
|
117
|
-
if (readableMap == null) {
|
|
118
|
-
writableMap.putNull(key);
|
|
119
|
-
} else {
|
|
120
|
-
writableMap.putMap(key, readableMap);
|
|
121
|
-
}
|
|
122
|
-
updateOptions(sceneId, writableMap);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
private void updateOptions(String sceneId, @Nullable ReadableArray readableArray, String key) {
|
|
126
|
-
WritableMap writableMap = new JavaOnlyMap();
|
|
127
|
-
if (readableArray == null) {
|
|
128
|
-
writableMap.putNull(key);
|
|
129
|
-
} else {
|
|
130
|
-
writableMap.putArray(key, readableArray);
|
|
131
|
-
}
|
|
132
|
-
updateOptions(sceneId, writableMap);
|
|
133
|
-
}
|
|
134
|
-
|
|
86
|
+
|
|
135
87
|
@ReactMethod
|
|
136
88
|
public void updateTabBar(final String sceneId, final ReadableMap readableMap) {
|
|
137
89
|
FLog.i(TAG, "updateTabBar:" + readableMap);
|
|
@@ -72,41 +72,6 @@ RCT_EXPORT_METHOD(setStyle:(NSDictionary *) style) {
|
|
|
72
72
|
[GlobalStyle createWithOptions:style];
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
RCT_EXPORT_METHOD(setTitleItem:(NSString *)sceneId item:(NSDictionary *)item) {
|
|
76
|
-
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
|
77
|
-
if (vc) {
|
|
78
|
-
[vc updateNavigationBarOptions:@{@"titleItem": RCTNullIfNil(item)}];
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
RCT_EXPORT_METHOD(setLeftBarButtonItem:(NSString *)sceneId item:(NSDictionary *__nullable)item) {
|
|
83
|
-
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
|
84
|
-
if (vc) {
|
|
85
|
-
[vc updateNavigationBarOptions:@{@"leftBarButtonItem": RCTNullIfNil(item)}];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
RCT_EXPORT_METHOD(setRightBarButtonItem:(NSString *)sceneId item:(NSDictionary *__nullable)item) {
|
|
90
|
-
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
|
91
|
-
if (vc) {
|
|
92
|
-
[vc updateNavigationBarOptions:@{@"rightBarButtonItem": RCTNullIfNil(item)}];
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
RCT_EXPORT_METHOD(setLeftBarButtonItems:(NSString *)sceneId item:(NSArray *__nullable)items) {
|
|
97
|
-
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
|
98
|
-
if (vc) {
|
|
99
|
-
[vc updateNavigationBarOptions:@{@"leftBarButtonItems": RCTNullIfNil(items)}];
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
RCT_EXPORT_METHOD(setRightBarButtonItems:(NSString *)sceneId item:(NSArray *__nullable)items) {
|
|
104
|
-
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
|
105
|
-
if (vc) {
|
|
106
|
-
[vc updateNavigationBarOptions:@{@"rightBarButtonItems": RCTNullIfNil(items)}];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
75
|
RCT_EXPORT_METHOD(updateOptions:(NSString *)sceneId item:(NSDictionary *)options) {
|
|
111
76
|
RCTLogInfo(@"[Navigation] updateNavigationBarOptions: %@", options);
|
|
112
77
|
HBDViewController *vc = [self viewControllerWithSceneId:sceneId];
|
package/lib/Navigation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import { ComponentProvider } from 'react-native';
|
|
3
|
-
import type { BarButtonItem, DefaultOptions, NavigationOption, TabBarStyle, TabItemInfo, TitleItem } from './Options';
|
|
3
|
+
import type { BarButtonItem, DefaultOptions, NavigationOption, Nullable, TabBarStyle, TabItemInfo, TitleItem } from './Options';
|
|
4
4
|
import type { BuildInLayout, Layout, Route, RouteGraph, RouteConfig } from './Route';
|
|
5
5
|
import { ResultType } from './handler/ResultEventHandler';
|
|
6
6
|
import { GlobalVisibilityEventListener, VisibilityEventListener } from './handler/VisibilityEventHandler';
|
|
@@ -8,9 +8,6 @@ export type { ResultType } from './handler/ResultEventHandler';
|
|
|
8
8
|
import type { DispatchParams, NavigationInterceptor } from './handler/DispatchCommandHandler';
|
|
9
9
|
export type { DispatchParams, NavigationInterceptor } from './handler/DispatchCommandHandler';
|
|
10
10
|
type BarButtonClickEventListener = (sceneId: string, value: Function) => void;
|
|
11
|
-
type Nullable<T> = {
|
|
12
|
-
[P in keyof T]: T[P] extends T[P] | undefined ? T[P] | null : T[P];
|
|
13
|
-
};
|
|
14
11
|
export declare const RESULT_CANCEL: number, RESULT_OK: number;
|
|
15
12
|
export type NavigationSubscription = {
|
|
16
13
|
remove: () => void;
|
|
@@ -38,10 +35,25 @@ export interface Navigation {
|
|
|
38
35
|
currentRoute(): Promise<Route>;
|
|
39
36
|
routeGraph(): Promise<RouteGraph[]>;
|
|
40
37
|
setDefaultOptions(options: DefaultOptions): void;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated use `updateOptions` instead
|
|
40
|
+
*/
|
|
41
41
|
setLeftBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null): void;
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated use `updateOptions` instead
|
|
44
|
+
*/
|
|
42
45
|
setRightBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null): void;
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated use `updateOptions` instead
|
|
48
|
+
*/
|
|
43
49
|
setLeftBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null): void;
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated use `updateOptions` instead
|
|
52
|
+
*/
|
|
44
53
|
setRightBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null): void;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated use `updateOptions` instead
|
|
56
|
+
*/
|
|
45
57
|
setTitleItem(sceneId: string, titleItem: TitleItem): void;
|
|
46
58
|
updateOptions(sceneId: string, options: NavigationOption): void;
|
|
47
59
|
updateTabBar(sceneId: string, options: TabBarStyle): void;
|
package/lib/Navigation.js
CHANGED
|
@@ -119,26 +119,28 @@ class NavigationImpl {
|
|
|
119
119
|
GardenModule.setStyle(options);
|
|
120
120
|
}
|
|
121
121
|
setLeftBarButtonItem(sceneId, buttonItem) {
|
|
122
|
-
|
|
123
|
-
|
|
122
|
+
console.warn(`setLeftBarButtonItem is deprecated, please use updateOptions instead`);
|
|
123
|
+
this.updateOptions(sceneId, { leftBarButtonItem: buttonItem });
|
|
124
124
|
}
|
|
125
125
|
setRightBarButtonItem(sceneId, buttonItem) {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
console.warn(`setRightBarButtonItem is deprecated, please use updateOptions instead`);
|
|
127
|
+
this.updateOptions(sceneId, { rightBarButtonItem: buttonItem });
|
|
128
128
|
}
|
|
129
129
|
setLeftBarButtonItems(sceneId, buttonItems) {
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
console.warn(`setLeftBarButtonItems is deprecated, please use updateOptions instead`);
|
|
131
|
+
this.updateOptions(sceneId, { leftBarButtonItems: buttonItems });
|
|
132
132
|
}
|
|
133
133
|
setRightBarButtonItems(sceneId, buttonItems) {
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
console.warn(`setRightBarButtonItems is deprecated, please use updateOptions instead`);
|
|
135
|
+
this.updateOptions(sceneId, { rightBarButtonItems: buttonItems });
|
|
136
136
|
}
|
|
137
137
|
setTitleItem(sceneId, titleItem) {
|
|
138
|
-
|
|
138
|
+
console.warn(`setTitleItem is deprecated, please use updateOptions instead`);
|
|
139
|
+
this.updateOptions(sceneId, { titleItem });
|
|
139
140
|
}
|
|
140
141
|
updateOptions(sceneId, options) {
|
|
141
|
-
|
|
142
|
+
const object = this.bindBarButtonClickEvent(sceneId, options) || {};
|
|
143
|
+
GardenModule.updateOptions(sceneId, object);
|
|
142
144
|
}
|
|
143
145
|
updateTabBar(sceneId, options) {
|
|
144
146
|
GardenModule.updateTabBar(sceneId, options);
|
package/lib/Options.d.ts
CHANGED
|
@@ -22,6 +22,9 @@ export type LayoutFittingExpanded = typeof LayoutFittingExpanded;
|
|
|
22
22
|
export declare const LayoutFittingCompressed = "compressed";
|
|
23
23
|
export type LayoutFittingCompressed = typeof LayoutFittingCompressed;
|
|
24
24
|
export type LayoutFitting = LayoutFittingExpanded | LayoutFittingCompressed;
|
|
25
|
+
export type Nullable<T> = {
|
|
26
|
+
[P in keyof T]: T[P] extends T[P] | undefined ? T[P] | null : T[P];
|
|
27
|
+
};
|
|
25
28
|
export interface NavigationOption {
|
|
26
29
|
screenBackgroundColor?: Color;
|
|
27
30
|
statusBarHidden?: boolean;
|
|
@@ -40,6 +43,11 @@ export interface NavigationOption {
|
|
|
40
43
|
homeIndicatorAutoHiddenIOS?: boolean;
|
|
41
44
|
backButtonHidden?: boolean;
|
|
42
45
|
backInteractive?: boolean;
|
|
46
|
+
titleItem?: TitleItem;
|
|
47
|
+
leftBarButtonItem?: Nullable<BarButtonItem> | null;
|
|
48
|
+
rightBarButtonItem?: Nullable<BarButtonItem> | null;
|
|
49
|
+
leftBarButtonItems?: Nullable<BarButtonItem>[] | null;
|
|
50
|
+
rightBarButtonItems?: Nullable<BarButtonItem>[] | null;
|
|
43
51
|
}
|
|
44
52
|
export interface NavigationItem extends NavigationOption {
|
|
45
53
|
passThroughTouches?: boolean;
|
|
@@ -47,11 +55,6 @@ export interface NavigationItem extends NavigationOption {
|
|
|
47
55
|
topBarHidden?: boolean;
|
|
48
56
|
extendedLayoutIncludesTopBar?: boolean;
|
|
49
57
|
swipeBackEnabled?: boolean;
|
|
50
|
-
titleItem?: TitleItem;
|
|
51
|
-
leftBarButtonItem?: BarButtonItem;
|
|
52
|
-
rightBarButtonItem?: BarButtonItem;
|
|
53
|
-
leftBarButtonItems?: BarButtonItem[];
|
|
54
|
-
rightBarButtonItems?: BarButtonItem[];
|
|
55
58
|
backItemIOS?: BackItem;
|
|
56
59
|
tabItem?: TabItem;
|
|
57
60
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hybrid-navigation",
|
|
3
3
|
"description": "React Native Navigation that supports seamless navigation between Native and React.",
|
|
4
|
-
"version": "2.16.0-beta.
|
|
4
|
+
"version": "2.16.0-beta.6",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
7
7
|
"react-native": "src/index",
|
package/src/Navigation.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
BarButtonItem,
|
|
6
6
|
DefaultOptions,
|
|
7
7
|
NavigationOption,
|
|
8
|
+
Nullable,
|
|
8
9
|
TabBarStyle,
|
|
9
10
|
TabItemInfo,
|
|
10
11
|
TitleItem,
|
|
@@ -30,10 +31,6 @@ export type { DispatchParams, NavigationInterceptor } from './handler/DispatchCo
|
|
|
30
31
|
|
|
31
32
|
type BarButtonClickEventListener = (sceneId: string, value: Function) => void
|
|
32
33
|
|
|
33
|
-
type Nullable<T> = {
|
|
34
|
-
[P in keyof T]: T[P] extends T[P] | undefined ? T[P] | null : T[P]
|
|
35
|
-
}
|
|
36
|
-
|
|
37
34
|
export const { RESULT_CANCEL, RESULT_OK } = NavigationModule.getConstants()
|
|
38
35
|
|
|
39
36
|
export type NavigationSubscription = {
|
|
@@ -72,10 +69,25 @@ export interface Navigation {
|
|
|
72
69
|
currentRoute(): Promise<Route>
|
|
73
70
|
routeGraph(): Promise<RouteGraph[]>
|
|
74
71
|
setDefaultOptions(options: DefaultOptions): void
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated use `updateOptions` instead
|
|
74
|
+
*/
|
|
75
75
|
setLeftBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null): void
|
|
76
|
+
/**
|
|
77
|
+
* @deprecated use `updateOptions` instead
|
|
78
|
+
*/
|
|
76
79
|
setRightBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null): void
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated use `updateOptions` instead
|
|
82
|
+
*/
|
|
77
83
|
setLeftBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null): void
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated use `updateOptions` instead
|
|
86
|
+
*/
|
|
78
87
|
setRightBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null): void
|
|
88
|
+
/**
|
|
89
|
+
* @deprecated use `updateOptions` instead
|
|
90
|
+
*/
|
|
79
91
|
setTitleItem(sceneId: string, titleItem: TitleItem): void
|
|
80
92
|
updateOptions(sceneId: string, options: NavigationOption): void
|
|
81
93
|
updateTabBar(sceneId: string, options: TabBarStyle): void
|
|
@@ -239,31 +251,33 @@ class NavigationImpl implements Navigation {
|
|
|
239
251
|
}
|
|
240
252
|
|
|
241
253
|
setLeftBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null) {
|
|
242
|
-
|
|
243
|
-
|
|
254
|
+
console.warn(`setLeftBarButtonItem is deprecated, please use updateOptions instead`)
|
|
255
|
+
this.updateOptions(sceneId, { leftBarButtonItem: buttonItem })
|
|
244
256
|
}
|
|
245
257
|
|
|
246
258
|
setRightBarButtonItem(sceneId: string, buttonItem: Nullable<BarButtonItem> | null) {
|
|
247
|
-
|
|
248
|
-
|
|
259
|
+
console.warn(`setRightBarButtonItem is deprecated, please use updateOptions instead`)
|
|
260
|
+
this.updateOptions(sceneId, { rightBarButtonItem: buttonItem })
|
|
249
261
|
}
|
|
250
262
|
|
|
251
263
|
setLeftBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null) {
|
|
252
|
-
|
|
253
|
-
|
|
264
|
+
console.warn(`setLeftBarButtonItems is deprecated, please use updateOptions instead`)
|
|
265
|
+
this.updateOptions(sceneId, { leftBarButtonItems: buttonItems })
|
|
254
266
|
}
|
|
255
267
|
|
|
256
268
|
setRightBarButtonItems(sceneId: string, buttonItems: Array<Nullable<BarButtonItem>> | null) {
|
|
257
|
-
|
|
258
|
-
|
|
269
|
+
console.warn(`setRightBarButtonItems is deprecated, please use updateOptions instead`)
|
|
270
|
+
this.updateOptions(sceneId, { rightBarButtonItems: buttonItems })
|
|
259
271
|
}
|
|
260
272
|
|
|
261
273
|
setTitleItem(sceneId: string, titleItem: TitleItem) {
|
|
262
|
-
|
|
274
|
+
console.warn(`setTitleItem is deprecated, please use updateOptions instead`)
|
|
275
|
+
this.updateOptions(sceneId, { titleItem })
|
|
263
276
|
}
|
|
264
277
|
|
|
265
278
|
updateOptions(sceneId: string, options: NavigationOption) {
|
|
266
|
-
|
|
279
|
+
const object = this.bindBarButtonClickEvent(sceneId, options) || {}
|
|
280
|
+
GardenModule.updateOptions(sceneId, object)
|
|
267
281
|
}
|
|
268
282
|
|
|
269
283
|
updateTabBar(sceneId: string, options: TabBarStyle) {
|
package/src/Options.ts
CHANGED
|
@@ -21,6 +21,9 @@ export const LayoutFittingCompressed = 'compressed'
|
|
|
21
21
|
export type LayoutFittingCompressed = typeof LayoutFittingCompressed
|
|
22
22
|
export type LayoutFitting = LayoutFittingExpanded | LayoutFittingCompressed
|
|
23
23
|
|
|
24
|
+
export type Nullable<T> = {
|
|
25
|
+
[P in keyof T]: T[P] extends T[P] | undefined ? T[P] | null : T[P]
|
|
26
|
+
}
|
|
24
27
|
export interface NavigationOption {
|
|
25
28
|
screenBackgroundColor?: Color // 页面背景,默认是白色
|
|
26
29
|
statusBarHidden?: boolean // 是否隐藏状态栏
|
|
@@ -40,6 +43,12 @@ export interface NavigationOption {
|
|
|
40
43
|
|
|
41
44
|
backButtonHidden?: boolean // 是否显示返回按钮
|
|
42
45
|
backInteractive?: boolean // 是否允许侧滑返回或通过返回键返回
|
|
46
|
+
|
|
47
|
+
titleItem?: TitleItem
|
|
48
|
+
leftBarButtonItem?: Nullable<BarButtonItem> | null
|
|
49
|
+
rightBarButtonItem?: Nullable<BarButtonItem> | null
|
|
50
|
+
leftBarButtonItems?: Nullable<BarButtonItem>[] | null
|
|
51
|
+
rightBarButtonItems?: Nullable<BarButtonItem>[] | null
|
|
43
52
|
}
|
|
44
53
|
|
|
45
54
|
export interface NavigationItem extends NavigationOption {
|
|
@@ -48,11 +57,7 @@ export interface NavigationItem extends NavigationOption {
|
|
|
48
57
|
topBarHidden?: boolean // 是否隐藏 TopBar
|
|
49
58
|
extendedLayoutIncludesTopBar?: boolean // 页面内容是否延伸到 TopBar 底下,通常用于需要动态改变 `topBarAlpha` 的场合
|
|
50
59
|
swipeBackEnabled?: boolean // 是否可以通过右滑返回。如果 `backInteractive` 设置为 false, 那么该值无效。Android 下,只有开启了侧滑返回功能,该值才会生效。
|
|
51
|
-
|
|
52
|
-
leftBarButtonItem?: BarButtonItem
|
|
53
|
-
rightBarButtonItem?: BarButtonItem
|
|
54
|
-
leftBarButtonItems?: BarButtonItem[]
|
|
55
|
-
rightBarButtonItems?: BarButtonItem[]
|
|
60
|
+
|
|
56
61
|
backItemIOS?: BackItem
|
|
57
62
|
tabItem?: TabItem
|
|
58
63
|
}
|