@onekeyfe/react-native-pager-view 3.0.179-alpha.2026101501 → 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.
|
@@ -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" &&
|
|
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" &&
|
|
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.
|
|
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.
|
|
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" &&
|
|
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);
|
package/src/NativeScroller.tsx
CHANGED
|
@@ -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" &&
|
|
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,
|