@applicaster/zapp-react-native-ui-components 12.0.19-rc.0 → 12.0.19-rc.2
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
|
import * as React from "react";
|
|
2
2
|
import * as R from "ramda";
|
|
3
|
-
import { View, StyleSheet,
|
|
3
|
+
import { View, StyleSheet, FlatList } from "react-native";
|
|
4
4
|
import { useTheme } from "@applicaster/zapp-react-native-utils/theme";
|
|
5
5
|
import { RiverItem } from "../RiverItem";
|
|
6
6
|
import { RiverFooter } from "../RiverFooter";
|
|
@@ -23,6 +23,9 @@ import { isLast } from "@applicaster/zapp-react-native-utils/arrayUtils";
|
|
|
23
23
|
import { withComponentsMapProvider } from "@applicaster/zapp-react-native-ui-components/Decorators/ComponentsMapWrapper";
|
|
24
24
|
import { useScreenContextV2 } from "@applicaster/zapp-react-native-utils/reactHooks/screen/useScreenContext";
|
|
25
25
|
import { useShallow } from "zustand/react/shallow";
|
|
26
|
+
import { isAndroidPlatform } from "@applicaster/zapp-react-native-utils/reactUtils";
|
|
27
|
+
|
|
28
|
+
const isAndroid = isAndroidPlatform();
|
|
26
29
|
|
|
27
30
|
type Props = {
|
|
28
31
|
feed: ZappFeed;
|
|
@@ -302,12 +305,12 @@ function ComponentsMapComponent(props: Props) {
|
|
|
302
305
|
}}
|
|
303
306
|
// Fix for WebView rerender crashes on Android API 28+
|
|
304
307
|
// https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-964035468
|
|
305
|
-
overScrollMode={
|
|
308
|
+
overScrollMode={isAndroid ? "never" : "auto"}
|
|
306
309
|
scrollIndicatorInsets={scrollIndicatorInsets}
|
|
307
310
|
extraData={feed}
|
|
308
311
|
stickyHeaderIndices={stickyHeaderIndices}
|
|
309
312
|
onLayout={handleOnLayout}
|
|
310
|
-
removeClippedSubviews
|
|
313
|
+
removeClippedSubviews={isAndroid}
|
|
311
314
|
initialNumToRender={3}
|
|
312
315
|
maxToRenderPerBatch={10}
|
|
313
316
|
windowSize={12}
|
|
@@ -62,7 +62,7 @@ exports[`componentsMap renders renders components map correctly 1`] = `
|
|
|
62
62
|
onScrollEndDrag={[Function]}
|
|
63
63
|
overScrollMode="auto"
|
|
64
64
|
refreshControl={null}
|
|
65
|
-
removeClippedSubviews={
|
|
65
|
+
removeClippedSubviews={false}
|
|
66
66
|
renderItem={[Function]}
|
|
67
67
|
scrollEventThrottle={16}
|
|
68
68
|
scrollIndicatorInsets={
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applicaster/zapp-react-native-ui-components",
|
|
3
|
-
"version": "12.0.19-rc.
|
|
3
|
+
"version": "12.0.19-rc.2",
|
|
4
4
|
"description": "Applicaster Zapp React Native ui components for the Quick Brick App",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"redux-mock-store": "^1.5.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@applicaster/applicaster-types": "12.0.19-rc.
|
|
38
|
-
"@applicaster/zapp-react-native-bridge": "12.0.19-rc.
|
|
39
|
-
"@applicaster/zapp-react-native-redux": "12.0.19-rc.
|
|
40
|
-
"@applicaster/zapp-react-native-utils": "12.0.19-rc.
|
|
37
|
+
"@applicaster/applicaster-types": "12.0.19-rc.2",
|
|
38
|
+
"@applicaster/zapp-react-native-bridge": "12.0.19-rc.2",
|
|
39
|
+
"@applicaster/zapp-react-native-redux": "12.0.19-rc.2",
|
|
40
|
+
"@applicaster/zapp-react-native-utils": "12.0.19-rc.2",
|
|
41
41
|
"promise": "^8.3.0",
|
|
42
42
|
"react-router-native": "^5.1.2",
|
|
43
43
|
"url": "^0.11.0",
|