react-native-navigation 7.32.0 → 7.32.1

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.
@@ -14,7 +14,8 @@ class LayoutTreeCrawler {
14
14
  if (node.type === LayoutType_1.LayoutType.Component) {
15
15
  this.handleComponent(node);
16
16
  }
17
- this.optionsProcessor.processOptions(commandName, node.data.options);
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
- int index = 0;
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.optionsProcessor.processOptions(commandName, node.data.options);
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.0",
3
+ "version": "7.32.1",
4
4
  "description": "React Native Navigation - truly native navigation for iOS and Android",
5
5
  "license": "MIT",
6
6
  "nativePackage": true,