@onekeyfe/react-native-pager-view 3.0.135 → 3.0.137

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.
@@ -2,8 +2,10 @@
2
2
 
3
3
  NS_ASSUME_NONNULL_BEGIN
4
4
 
5
+ // Keep the dictionary unspecialized: NSMutableDictionary generics are invariant,
6
+ // so Objective-C++ callers with a concrete value type would fail to compile.
5
7
  FOUNDATION_EXPORT void RNCPruneReleasedPageStates(
6
- NSMutableDictionary<NSString *, id> *releasedStates,
8
+ NSMutableDictionary *releasedStates,
7
9
  NSArray<NSString *> *validPageKeys
8
10
  );
9
11
 
@@ -1,7 +1,7 @@
1
1
  #import "RNCCollapsiblePagerReleasedStatePolicy.h"
2
2
 
3
3
  void RNCPruneReleasedPageStates(
4
- NSMutableDictionary<NSString *, id> *releasedStates,
4
+ NSMutableDictionary *releasedStates,
5
5
  NSArray<NSString *> *validPageKeys
6
6
  )
7
7
  {
@@ -11,7 +11,8 @@
11
11
  {
12
12
  NSObject *alpha = [NSObject new];
13
13
  NSObject *beta = [NSObject new];
14
- NSMutableDictionary<NSString *, id> *releasedStates = [@{
14
+ // A concrete value type in Objective-C++ mirrors the component view call site.
15
+ NSMutableDictionary<NSString *, NSObject *> *releasedStates = [@{
15
16
  @"alpha": alpha,
16
17
  @"beta": beta,
17
18
  } mutableCopy];
@@ -30,7 +31,7 @@
30
31
 
31
32
  RNCPruneReleasedPageStates(releasedStates, @[]);
32
33
 
33
- XCTAssertEqual(releasedStates.count, 0);
34
+ XCTAssertEqual(releasedStates.count, 0u);
34
35
  }
35
36
 
36
37
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-pager-view",
3
- "version": "3.0.135",
3
+ "version": "3.0.137",
4
4
  "description": "React Native wrapper for Android and iOS ViewPager",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -66,7 +66,7 @@
66
66
  "typescript": "^5.9.2"
67
67
  },
68
68
  "peerDependencies": {
69
- "@onekeyfe/react-native-native-logger": "3.0.135",
69
+ "@onekeyfe/react-native-native-logger": "3.0.137",
70
70
  "react": "*",
71
71
  "react-native": "*"
72
72
  },