react-native-navigation 7.32.0 → 7.32.1-snapshot.898
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.
|
@@ -18,47 +18,43 @@ export default class ComponentNode extends ParentNode {
|
|
|
18
18
|
|
|
19
19
|
public componentDidAppear() {
|
|
20
20
|
if (this.componentDidMountOnce) {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
events.invokeComponentDidAppear({
|
|
28
|
-
componentName: this.data.name,
|
|
29
|
-
componentId: this.nodeId,
|
|
30
|
-
componentType: 'Component',
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
this.buttonsDidAppear(
|
|
34
|
-
_.concat(
|
|
35
|
-
this.data.options.topBar?.rightButtons || [],
|
|
36
|
-
this.data.options.topBar?.leftButtons || []
|
|
37
|
-
)
|
|
38
|
-
);
|
|
39
|
-
this.titleChanged(undefined, this.data.options.topBar?.title);
|
|
40
|
-
}, 0);
|
|
41
|
-
} else {
|
|
42
|
-
this.componentDidAppearPending = true;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public componentDidDisappear() {
|
|
47
|
-
setTimeout(() => {
|
|
48
|
-
events.invokeComponentDidDisappear({
|
|
21
|
+
events.invokeComponentWillAppear({
|
|
22
|
+
componentName: this.data.name,
|
|
23
|
+
componentId: this.nodeId,
|
|
24
|
+
componentType: 'Component',
|
|
25
|
+
});
|
|
26
|
+
events.invokeComponentDidAppear({
|
|
49
27
|
componentName: this.data.name,
|
|
50
28
|
componentId: this.nodeId,
|
|
51
29
|
componentType: 'Component',
|
|
52
30
|
});
|
|
53
31
|
|
|
54
|
-
this.
|
|
32
|
+
this.buttonsDidAppear(
|
|
55
33
|
_.concat(
|
|
56
34
|
this.data.options.topBar?.rightButtons || [],
|
|
57
35
|
this.data.options.topBar?.leftButtons || []
|
|
58
36
|
)
|
|
59
37
|
);
|
|
60
|
-
this.titleChanged(this.data.options.topBar?.title);
|
|
61
|
-
}
|
|
38
|
+
this.titleChanged(undefined, this.data.options.topBar?.title);
|
|
39
|
+
} else {
|
|
40
|
+
this.componentDidAppearPending = true;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
public componentDidDisappear() {
|
|
45
|
+
events.invokeComponentDidDisappear({
|
|
46
|
+
componentName: this.data.name,
|
|
47
|
+
componentId: this.nodeId,
|
|
48
|
+
componentType: 'Component',
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
this.buttonsDidDisappear(
|
|
52
|
+
_.concat(
|
|
53
|
+
this.data.options.topBar?.rightButtons || [],
|
|
54
|
+
this.data.options.topBar?.leftButtons || []
|
|
55
|
+
)
|
|
56
|
+
);
|
|
57
|
+
this.titleChanged(this.data.options.topBar?.title);
|
|
62
58
|
}
|
|
63
59
|
|
|
64
60
|
titleChanged(oldTitle: any, newTitle?: any) {
|
|
@@ -16,35 +16,31 @@ class ComponentNode extends ParentNode_1.default {
|
|
|
16
16
|
}
|
|
17
17
|
componentDidAppear() {
|
|
18
18
|
if (this.componentDidMountOnce) {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
this.titleChanged(undefined, this.data.options.topBar?.title);
|
|
32
|
-
}, 0);
|
|
19
|
+
EventsStore_1.events.invokeComponentWillAppear({
|
|
20
|
+
componentName: this.data.name,
|
|
21
|
+
componentId: this.nodeId,
|
|
22
|
+
componentType: 'Component',
|
|
23
|
+
});
|
|
24
|
+
EventsStore_1.events.invokeComponentDidAppear({
|
|
25
|
+
componentName: this.data.name,
|
|
26
|
+
componentId: this.nodeId,
|
|
27
|
+
componentType: 'Component',
|
|
28
|
+
});
|
|
29
|
+
this.buttonsDidAppear(lodash_1.default.concat(this.data.options.topBar?.rightButtons || [], this.data.options.topBar?.leftButtons || []));
|
|
30
|
+
this.titleChanged(undefined, this.data.options.topBar?.title);
|
|
33
31
|
}
|
|
34
32
|
else {
|
|
35
33
|
this.componentDidAppearPending = true;
|
|
36
34
|
}
|
|
37
35
|
}
|
|
38
36
|
componentDidDisappear() {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
this.titleChanged(this.data.options.topBar?.title);
|
|
47
|
-
}, 0);
|
|
37
|
+
EventsStore_1.events.invokeComponentDidDisappear({
|
|
38
|
+
componentName: this.data.name,
|
|
39
|
+
componentId: this.nodeId,
|
|
40
|
+
componentType: 'Component',
|
|
41
|
+
});
|
|
42
|
+
this.buttonsDidDisappear(lodash_1.default.concat(this.data.options.topBar?.rightButtons || [], this.data.options.topBar?.leftButtons || []));
|
|
43
|
+
this.titleChanged(this.data.options.topBar?.title);
|
|
48
44
|
}
|
|
49
45
|
titleChanged(oldTitle, newTitle) {
|
|
50
46
|
if (oldTitle && oldTitle.component) {
|
|
@@ -14,7 +14,8 @@ class LayoutTreeCrawler {
|
|
|
14
14
|
if (node.type === LayoutType_1.LayoutType.Component) {
|
|
15
15
|
this.handleComponent(node);
|
|
16
16
|
}
|
|
17
|
-
this.
|
|
17
|
+
const componentProps = this.store.getPropsForId(node.id) || undefined;
|
|
18
|
+
this.optionsProcessor.processOptions(commandName, node.data.options, componentProps);
|
|
18
19
|
node.children.forEach((value) => this.crawl(value, commandName));
|
|
19
20
|
}
|
|
20
21
|
handleComponent(node) {
|
|
@@ -1,17 +1,10 @@
|
|
|
1
|
+
#import "UITabBar+utils.h"
|
|
1
2
|
#import "UITabBarController+RNNUtils.h"
|
|
2
3
|
#import "UIView+Utils.h"
|
|
3
4
|
|
|
4
5
|
@implementation UITabBarController (RNNUtils)
|
|
5
6
|
- (UIView *)getTabView:(int)tabIndex {
|
|
6
|
-
|
|
7
|
-
for (UIView *view in [[self tabBar] subviews]) {
|
|
8
|
-
if ([NSStringFromClass([view class]) isEqualToString:@"UITabBarButton"]) {
|
|
9
|
-
if (index == tabIndex)
|
|
10
|
-
return view;
|
|
11
|
-
index++;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return nil;
|
|
7
|
+
return [[self tabBar] tabBarItemViewAtIndex:tabIndex];
|
|
15
8
|
}
|
|
16
9
|
|
|
17
10
|
- (UIView *)getTabIcon:(int)tabIndex {
|
|
@@ -24,7 +24,8 @@ export class LayoutTreeCrawler {
|
|
|
24
24
|
if (node.type === LayoutType.Component) {
|
|
25
25
|
this.handleComponent(node);
|
|
26
26
|
}
|
|
27
|
-
this.
|
|
27
|
+
const componentProps = this.store.getPropsForId(node.id) || undefined;
|
|
28
|
+
this.optionsProcessor.processOptions(commandName, node.data.options, componentProps);
|
|
28
29
|
node.children.forEach((value: LayoutNode) => this.crawl(value, commandName));
|
|
29
30
|
}
|
|
30
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-navigation",
|
|
3
|
-
"version": "7.32.
|
|
3
|
+
"version": "7.32.1-snapshot.898",
|
|
4
4
|
"description": "React Native Navigation - truly native navigation for iOS and Android",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"nativePackage": true,
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"simulator": {
|
|
149
149
|
"type": "ios.simulator",
|
|
150
150
|
"device": {
|
|
151
|
-
"type": "iPhone
|
|
151
|
+
"type": "iPhone 13 Pro Max"
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
"genymotion.emulator.name": {
|