@applicaster/zapp-react-native-ui-components 12.0.18 → 12.0.19-alpha.7321313106

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, Platform, FlatList } from "react-native";
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,13 @@ 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 {
27
+ isAndroidPlatform,
28
+ isApplePlatform,
29
+ } from "@applicaster/zapp-react-native-utils/reactUtils";
30
+
31
+ const isAndroid = isAndroidPlatform();
32
+ const isIOS = isApplePlatform();
26
33
 
27
34
  type Props = {
28
35
  feed: ZappFeed;
@@ -302,12 +309,12 @@ function ComponentsMapComponent(props: Props) {
302
309
  }}
303
310
  // Fix for WebView rerender crashes on Android API 28+
304
311
  // https://github.com/react-native-webview/react-native-webview/issues/1915#issuecomment-964035468
305
- overScrollMode={Platform.OS === "android" ? "never" : "auto"}
312
+ overScrollMode={isAndroid ? "never" : "auto"}
306
313
  scrollIndicatorInsets={scrollIndicatorInsets}
307
314
  extraData={feed}
308
315
  stickyHeaderIndices={stickyHeaderIndices}
309
316
  onLayout={handleOnLayout}
310
- removeClippedSubviews
317
+ removeClippedSubviews={!isIOS}
311
318
  initialNumToRender={3}
312
319
  maxToRenderPerBatch={10}
313
320
  windowSize={12}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applicaster/zapp-react-native-ui-components",
3
- "version": "12.0.18",
3
+ "version": "12.0.19-alpha.7321313106",
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.18",
38
- "@applicaster/zapp-react-native-bridge": "12.0.18",
39
- "@applicaster/zapp-react-native-redux": "12.0.18",
40
- "@applicaster/zapp-react-native-utils": "12.0.18",
37
+ "@applicaster/applicaster-types": "12.0.19-alpha.7321313106",
38
+ "@applicaster/zapp-react-native-bridge": "12.0.19-alpha.7321313106",
39
+ "@applicaster/zapp-react-native-redux": "12.0.19-alpha.7321313106",
40
+ "@applicaster/zapp-react-native-utils": "12.0.19-alpha.7321313106",
41
41
  "promise": "^8.3.0",
42
42
  "react-router-native": "^5.1.2",
43
43
  "url": "^0.11.0",