@onekeyfe/react-native-pager-view 3.0.179-alpha.20261015 → 3.0.179-alpha.2026101502

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.
@@ -3144,15 +3144,17 @@ static void RNCLogNativeTabScrollBoundary(NSString *owner,
3144
3144
  }
3145
3145
  if (_needsPropsReapply || oldViewProps.topScrollEdgeHard != newViewProps.topScrollEdgeHard) {
3146
3146
  _topScrollEdgeHard = newViewProps.topScrollEdgeHard;
3147
- _deferTopEdgeSlotRebuild = YES;
3148
- [self rebuildSlots];
3149
- NSUInteger generation = _generation;
3150
- dispatch_async(dispatch_get_main_queue(), ^{
3151
- if (self->_generation != generation || self->_isBeingRecycled ||
3152
- !self->_deferTopEdgeSlotRebuild) return;
3153
- self->_deferTopEdgeSlotRebuild = NO;
3147
+ if (oldViewProps.topScrollEdgeHard || newViewProps.topScrollEdgeHard) {
3148
+ _deferTopEdgeSlotRebuild = YES;
3154
3149
  [self rebuildSlots];
3155
- });
3150
+ NSUInteger generation = _generation;
3151
+ dispatch_async(dispatch_get_main_queue(), ^{
3152
+ if (self->_generation != generation || self->_isBeingRecycled ||
3153
+ !self->_deferTopEdgeSlotRebuild) return;
3154
+ self->_deferTopEdgeSlotRebuild = NO;
3155
+ [self rebuildSlots];
3156
+ });
3157
+ }
3156
3158
  insetsChanged = YES;
3157
3159
  }
3158
3160
  if (_needsPropsReapply ||
@@ -216,7 +216,7 @@ export class CollapsiblePagerView extends React.PureComponent {
216
216
  ...nativeProps
217
217
  } = this.props;
218
218
  const pages = this.pages();
219
- const supportsTopScrollEdge = Platform.OS === "ios" && Number(Platform.Version) >= 26;
219
+ const supportsTopScrollEdge = Platform.OS === "ios" && parseInt(String(Platform.Version), 10) >= 26;
220
220
  const hardScrollEdge = supportsTopScrollEdge && topScrollEdgeEffect === "hard";
221
221
  const hasTopOverlay = hardScrollEdge && topOverlay != null;
222
222
  const pageKeys = pages.map(pageKey);
@@ -59,7 +59,7 @@ export const NativeScroller = /*#__PURE__*/React.forwardRef(function NativeScrol
59
59
  height: 0
60
60
  });
61
61
  const [topOverlayHeight, setTopOverlayHeight] = React.useState(0);
62
- const hasTopOverlay = Platform.OS === "ios" && Number(Platform.Version) >= 26 && topScrollEdgeEffect === "hard" && topOverlay != null;
62
+ const hasTopOverlay = Platform.OS === "ios" && parseInt(String(Platform.Version), 10) >= 26 && topScrollEdgeEffect === "hard" && topOverlay != null;
63
63
  const [refreshEpoch, requestRefreshSync] = React.useReducer(value => value + 1, 0);
64
64
  const contentSizeRef = React.useRef(contentSize);
65
65
  const scrolledSinceGrant = React.useRef(false);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-pager-view",
3
- "version": "3.0.179-alpha.20261015",
3
+ "version": "3.0.179-alpha.2026101502",
4
4
  "description": "React Native wrapper for Android and iOS ViewPager",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",
@@ -72,7 +72,7 @@
72
72
  "typescript": "^5.9.2"
73
73
  },
74
74
  "peerDependencies": {
75
- "@onekeyfe/react-native-native-logger": "3.0.179-alpha.20261015",
75
+ "@onekeyfe/react-native-native-logger": "3.0.179-alpha.2026101502",
76
76
  "react": "*",
77
77
  "react-native": "*"
78
78
  },
@@ -492,7 +492,7 @@ export class CollapsiblePagerView extends React.PureComponent<
492
492
  } = this.props;
493
493
  const pages = this.pages();
494
494
  const supportsTopScrollEdge =
495
- Platform.OS === "ios" && Number(Platform.Version) >= 26;
495
+ Platform.OS === "ios" && parseInt(String(Platform.Version), 10) >= 26;
496
496
  const hardScrollEdge = supportsTopScrollEdge && topScrollEdgeEffect === "hard";
497
497
  const hasTopOverlay = hardScrollEdge && topOverlay != null;
498
498
  const pageKeys = pages.map(pageKey);
@@ -117,7 +117,7 @@ export const NativeScroller = React.forwardRef<
117
117
  const [contentSize, setContentSize] = React.useState({ width: 0, height: 0 });
118
118
  const [topOverlayHeight, setTopOverlayHeight] = React.useState(0);
119
119
  const hasTopOverlay =
120
- Platform.OS === "ios" && Number(Platform.Version) >= 26 &&
120
+ Platform.OS === "ios" && parseInt(String(Platform.Version), 10) >= 26 &&
121
121
  topScrollEdgeEffect === "hard" && topOverlay != null;
122
122
  const [refreshEpoch, requestRefreshSync] = React.useReducer(
123
123
  (value: number) => value + 1,