@applicaster/quick-brick-native-apple 6.9.7 → 6.9.8-patch.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "QuickBrickApple",
3
- "version": "6.9.7",
3
+ "version": "6.9.8",
4
4
  "platforms": {
5
5
  "ios": "14.0",
6
6
  "tvos": "14.0"
@@ -16,7 +16,7 @@
16
16
  "authors": "Applicaster LTD.",
17
17
  "source": {
18
18
  "git": "https://github.com/applicaster/Zapp-Frameworks.git",
19
- "tag": "@@applicaster/quick-brick-native-apple/6.9.7"
19
+ "tag": "@@applicaster/quick-brick-native-apple/6.9.8"
20
20
  },
21
21
  "requires_arc": true,
22
22
  "source_files": "universal/**/*.{m,swift}",
@@ -101,6 +101,9 @@ public class FocusableGroupView: RCTTVView {
101
101
  Task {
102
102
  // Removing when react native releases the view
103
103
  await manager.unregisterGroup(withId: itemId)
104
+
105
+ cancellables.forEach { $0.cancel() }
106
+ cancellables.removeAll()
104
107
  }
105
108
  }
106
109
 
@@ -150,6 +150,9 @@ public class FocusableView: ParallaxView {
150
150
  Task {
151
151
  await FocusableGroupManager.shared.unregisterItem(withId: itemId, inGroup: groupId)
152
152
  }
153
+
154
+ cancellables.forEach { $0.cancel() }
155
+ cancellables.removeAll()
153
156
  }
154
157
 
155
158
  private func addFocusGuideIfNeeded(tag: NSNumber?,
@@ -13,7 +13,7 @@
13
13
  @interface RCT_EXTERN_MODULE (TrackedView, RCTViewManager)
14
14
 
15
15
  RCT_EXPORT_VIEW_PROPERTY(groupId, NSString);
16
- RCT_EXPORT_VIEW_PROPERTY(onPositionUpdated, RCTBubblingEventBlock);
16
+ RCT_EXPORT_VIEW_PROPERTY(onPositionUpdated, RCTDirectEventBlock);
17
17
 
18
18
  @end
19
19
 
@@ -9,7 +9,7 @@ import Foundation
9
9
  import React
10
10
 
11
11
  public class TrackedComponentView: RCTView {
12
- @objc public var onPositionUpdated: RCTBubblingEventBlock?
12
+ @objc public var onPositionUpdated: RCTDirectEventBlock?
13
13
 
14
14
  /// Convert the view frame to the window's coordinate system
15
15
  private func getViewFrameInWindow() -> CGRect {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/quick-brick-native-apple",
3
- "version": "6.9.7",
3
+ "version": "6.9.8-patch.0",
4
4
  "description": "iOS and tvOS native code for QuickBrick applications. This package is used to provide native logic for QuickBrick",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"