@react-native-ohos/flash-list 1.8.3-rc.1

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.
Files changed (247) hide show
  1. package/LICENSE +7 -0
  2. package/README.OpenSource +11 -0
  3. package/README.md +9 -0
  4. package/dist/AnimatedFlashList.d.ts +29 -0
  5. package/dist/AnimatedFlashList.d.ts.map +1 -0
  6. package/dist/AnimatedFlashList.js +31 -0
  7. package/dist/AnimatedFlashList.js.map +1 -0
  8. package/dist/FlashList.d.ts +182 -0
  9. package/dist/FlashList.d.ts.map +1 -0
  10. package/dist/FlashList.js +602 -0
  11. package/dist/FlashList.js.map +1 -0
  12. package/dist/FlashListProps.d.ts +279 -0
  13. package/dist/FlashListProps.d.ts.map +1 -0
  14. package/dist/FlashListProps.js +32 -0
  15. package/dist/FlashListProps.js.map +1 -0
  16. package/dist/GridLayoutProviderWithProps.d.ts +65 -0
  17. package/dist/GridLayoutProviderWithProps.d.ts.map +1 -0
  18. package/dist/GridLayoutProviderWithProps.js +138 -0
  19. package/dist/GridLayoutProviderWithProps.js.map +1 -0
  20. package/dist/MasonryFlashList.d.ts +74 -0
  21. package/dist/MasonryFlashList.d.ts.map +1 -0
  22. package/dist/MasonryFlashList.js +275 -0
  23. package/dist/MasonryFlashList.js.map +1 -0
  24. package/dist/PureComponentWrapper.d.ts +45 -0
  25. package/dist/PureComponentWrapper.d.ts.map +1 -0
  26. package/dist/PureComponentWrapper.js +60 -0
  27. package/dist/PureComponentWrapper.js.map +1 -0
  28. package/dist/benchmark/AutoScrollHelper.d.ts +41 -0
  29. package/dist/benchmark/AutoScrollHelper.d.ts.map +1 -0
  30. package/dist/benchmark/AutoScrollHelper.js +91 -0
  31. package/dist/benchmark/AutoScrollHelper.js.map +1 -0
  32. package/dist/benchmark/JSFPSMonitor.d.ts +46 -0
  33. package/dist/benchmark/JSFPSMonitor.d.ts.map +1 -0
  34. package/dist/benchmark/JSFPSMonitor.js +88 -0
  35. package/dist/benchmark/JSFPSMonitor.js.map +1 -0
  36. package/dist/benchmark/roundToDecimalPlaces.d.ts +25 -0
  37. package/dist/benchmark/roundToDecimalPlaces.d.ts.map +1 -0
  38. package/dist/benchmark/roundToDecimalPlaces.js +32 -0
  39. package/dist/benchmark/roundToDecimalPlaces.js.map +1 -0
  40. package/dist/benchmark/useBenchmark.d.ts +58 -0
  41. package/dist/benchmark/useBenchmark.d.ts.map +1 -0
  42. package/dist/benchmark/useBenchmark.js +190 -0
  43. package/dist/benchmark/useBenchmark.js.map +1 -0
  44. package/dist/benchmark/useBlankAreaTracker.d.ts +57 -0
  45. package/dist/benchmark/useBlankAreaTracker.d.ts.map +1 -0
  46. package/dist/benchmark/useBlankAreaTracker.js +90 -0
  47. package/dist/benchmark/useBlankAreaTracker.js.map +1 -0
  48. package/dist/benchmark/useDataMultiplier.d.ts +32 -0
  49. package/dist/benchmark/useDataMultiplier.d.ts.map +1 -0
  50. package/dist/benchmark/useDataMultiplier.js +48 -0
  51. package/dist/benchmark/useDataMultiplier.js.map +1 -0
  52. package/dist/benchmark/useFlatListBenchmark.d.ts +36 -0
  53. package/dist/benchmark/useFlatListBenchmark.d.ts.map +1 -0
  54. package/dist/benchmark/useFlatListBenchmark.js +123 -0
  55. package/dist/benchmark/useFlatListBenchmark.js.map +1 -0
  56. package/dist/errors/CustomError.d.ts +31 -0
  57. package/dist/errors/CustomError.d.ts.map +1 -0
  58. package/dist/errors/CustomError.js +37 -0
  59. package/dist/errors/CustomError.js.map +1 -0
  60. package/dist/errors/ExceptionList.d.ts +47 -0
  61. package/dist/errors/ExceptionList.d.ts.map +1 -0
  62. package/dist/errors/ExceptionList.js +49 -0
  63. package/dist/errors/ExceptionList.js.map +1 -0
  64. package/dist/errors/Warnings.d.ts +32 -0
  65. package/dist/errors/Warnings.d.ts.map +1 -0
  66. package/dist/errors/Warnings.js +36 -0
  67. package/dist/errors/Warnings.js.map +1 -0
  68. package/dist/fabric/AutoLayoutNativeComponent.d.ts +42 -0
  69. package/dist/fabric/AutoLayoutNativeComponent.d.ts.map +1 -0
  70. package/dist/fabric/AutoLayoutNativeComponent.js +29 -0
  71. package/dist/fabric/AutoLayoutNativeComponent.js.map +1 -0
  72. package/dist/fabric/CellContainerNativeComponent.d.ts +31 -0
  73. package/dist/fabric/CellContainerNativeComponent.d.ts.map +1 -0
  74. package/dist/fabric/CellContainerNativeComponent.js +29 -0
  75. package/dist/fabric/CellContainerNativeComponent.js.map +1 -0
  76. package/dist/index.d.ts +37 -0
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +55 -0
  79. package/dist/index.js.map +1 -0
  80. package/dist/native/auto-layout/AutoLayoutView.d.ts +45 -0
  81. package/dist/native/auto-layout/AutoLayoutView.d.ts.map +1 -0
  82. package/dist/native/auto-layout/AutoLayoutView.js +71 -0
  83. package/dist/native/auto-layout/AutoLayoutView.js.map +1 -0
  84. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts +27 -0
  85. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts.map +1 -0
  86. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js +29 -0
  87. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js.map +1 -0
  88. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts +28 -0
  89. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +1 -0
  90. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.d.ts +27 -0
  91. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.d.ts.map +1 -0
  92. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.js +29 -0
  93. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.js.map +1 -0
  94. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts +27 -0
  95. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts.map +1 -0
  96. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js +29 -0
  97. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js.map +1 -0
  98. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js +29 -0
  99. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js.map +1 -0
  100. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts +39 -0
  101. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts.map +1 -0
  102. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js +26 -0
  103. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js.map +1 -0
  104. package/dist/native/cell-container/CellContainer.android.d.ts +29 -0
  105. package/dist/native/cell-container/CellContainer.android.d.ts.map +1 -0
  106. package/dist/native/cell-container/CellContainer.android.js +32 -0
  107. package/dist/native/cell-container/CellContainer.android.js.map +1 -0
  108. package/dist/native/cell-container/CellContainer.d.ts +31 -0
  109. package/dist/native/cell-container/CellContainer.d.ts.map +1 -0
  110. package/dist/native/cell-container/CellContainer.harmony.d.ts +29 -0
  111. package/dist/native/cell-container/CellContainer.harmony.d.ts.map +1 -0
  112. package/dist/native/cell-container/CellContainer.harmony.js +32 -0
  113. package/dist/native/cell-container/CellContainer.harmony.js.map +1 -0
  114. package/dist/native/cell-container/CellContainer.ios.d.ts +29 -0
  115. package/dist/native/cell-container/CellContainer.ios.d.ts.map +1 -0
  116. package/dist/native/cell-container/CellContainer.ios.js +32 -0
  117. package/dist/native/cell-container/CellContainer.ios.js.map +1 -0
  118. package/dist/native/cell-container/CellContainer.js +34 -0
  119. package/dist/native/cell-container/CellContainer.js.map +1 -0
  120. package/dist/native/cell-container/CellContainer.web.d.ts +30 -0
  121. package/dist/native/cell-container/CellContainer.web.d.ts.map +1 -0
  122. package/dist/native/cell-container/CellContainer.web.js +36 -0
  123. package/dist/native/cell-container/CellContainer.web.js.map +1 -0
  124. package/dist/native/config/PlatformHelper.android.d.ts +49 -0
  125. package/dist/native/config/PlatformHelper.android.d.ts.map +1 -0
  126. package/dist/native/config/PlatformHelper.android.js +46 -0
  127. package/dist/native/config/PlatformHelper.android.js.map +1 -0
  128. package/dist/native/config/PlatformHelper.d.ts +49 -0
  129. package/dist/native/config/PlatformHelper.d.ts.map +1 -0
  130. package/dist/native/config/PlatformHelper.harmony.d.ts +49 -0
  131. package/dist/native/config/PlatformHelper.harmony.d.ts.map +1 -0
  132. package/dist/native/config/PlatformHelper.harmony.js +45 -0
  133. package/dist/native/config/PlatformHelper.harmony.js.map +1 -0
  134. package/dist/native/config/PlatformHelper.ios.d.ts +49 -0
  135. package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -0
  136. package/dist/native/config/PlatformHelper.ios.js +45 -0
  137. package/dist/native/config/PlatformHelper.ios.js.map +1 -0
  138. package/dist/native/config/PlatformHelper.js +46 -0
  139. package/dist/native/config/PlatformHelper.js.map +1 -0
  140. package/dist/native/config/PlatformHelper.web.d.ts +50 -0
  141. package/dist/native/config/PlatformHelper.web.d.ts.map +1 -0
  142. package/dist/native/config/PlatformHelper.web.js +48 -0
  143. package/dist/native/config/PlatformHelper.web.js.map +1 -0
  144. package/dist/tsconfig.tsbuildinfo +1 -0
  145. package/dist/utils/AverageWindow.d.ts +44 -0
  146. package/dist/utils/AverageWindow.d.ts.map +1 -0
  147. package/dist/utils/AverageWindow.js +72 -0
  148. package/dist/utils/AverageWindow.js.map +1 -0
  149. package/dist/utils/ContentContainerUtils.d.ts +50 -0
  150. package/dist/utils/ContentContainerUtils.d.ts.map +1 -0
  151. package/dist/utils/ContentContainerUtils.js +71 -0
  152. package/dist/utils/ContentContainerUtils.js.map +1 -0
  153. package/dist/viewability/ViewToken.d.ts +31 -0
  154. package/dist/viewability/ViewToken.d.ts.map +1 -0
  155. package/dist/viewability/ViewToken.js +26 -0
  156. package/dist/viewability/ViewToken.js.map +1 -0
  157. package/dist/viewability/ViewabilityHelper.d.ts +49 -0
  158. package/dist/viewability/ViewabilityHelper.d.ts.map +1 -0
  159. package/dist/viewability/ViewabilityHelper.js +130 -0
  160. package/dist/viewability/ViewabilityHelper.js.map +1 -0
  161. package/dist/viewability/ViewabilityManager.d.ts +48 -0
  162. package/dist/viewability/ViewabilityManager.d.ts.map +1 -0
  163. package/dist/viewability/ViewabilityManager.js +131 -0
  164. package/dist/viewability/ViewabilityManager.js.map +1 -0
  165. package/harmony/flash_list/BuildProfile.ets +17 -0
  166. package/harmony/flash_list/LICENSE +7 -0
  167. package/harmony/flash_list/build-profile.json5 +8 -0
  168. package/harmony/flash_list/hvigorfile.ts +1 -0
  169. package/harmony/flash_list/index.ets +27 -0
  170. package/harmony/flash_list/obfuscation-rules.txt +18 -0
  171. package/harmony/flash_list/oh-package.json5 +24 -0
  172. package/harmony/flash_list/src/main/cpp/AutoLayoutNode.cpp +63 -0
  173. package/harmony/flash_list/src/main/cpp/AutoLayoutNode.h +54 -0
  174. package/harmony/flash_list/src/main/cpp/AutoLayoutShadow.cpp +133 -0
  175. package/harmony/flash_list/src/main/cpp/AutoLayoutShadow.h +66 -0
  176. package/harmony/flash_list/src/main/cpp/AutoLayoutViewComponentInstance.cpp +208 -0
  177. package/harmony/flash_list/src/main/cpp/AutoLayoutViewComponentInstance.h +78 -0
  178. package/harmony/flash_list/src/main/cpp/AutoLayoutViewEventEmitRequestHandler.h +53 -0
  179. package/harmony/flash_list/src/main/cpp/AutoLayoutViewJSIBinder.h +50 -0
  180. package/harmony/flash_list/src/main/cpp/CMakeLists.txt +7 -0
  181. package/harmony/flash_list/src/main/cpp/CellContainerComponentInstance.cpp +80 -0
  182. package/harmony/flash_list/src/main/cpp/CellContainerComponentInstance.h +64 -0
  183. package/harmony/flash_list/src/main/cpp/CellContainerJSIBinder.h +39 -0
  184. package/harmony/flash_list/src/main/cpp/ComponentDescriptors.h +40 -0
  185. package/harmony/flash_list/src/main/cpp/EventEmitters.cpp +40 -0
  186. package/harmony/flash_list/src/main/cpp/EventEmitters.h +48 -0
  187. package/harmony/flash_list/src/main/cpp/FlashListPackage.h +77 -0
  188. package/harmony/flash_list/src/main/cpp/FlashListStackNode.cpp +87 -0
  189. package/harmony/flash_list/src/main/cpp/FlashListStackNode.h +57 -0
  190. package/harmony/flash_list/src/main/cpp/Props.cpp +52 -0
  191. package/harmony/flash_list/src/main/cpp/Props.h +64 -0
  192. package/harmony/flash_list/src/main/cpp/ShadowNodes.cpp +34 -0
  193. package/harmony/flash_list/src/main/cpp/ShadowNodes.h +48 -0
  194. package/harmony/flash_list/src/main/ets/Logger.ets +64 -0
  195. package/harmony/flash_list/src/main/ets/RNAutoLayoutShadow.ets +154 -0
  196. package/harmony/flash_list/src/main/ets/RNAutoLayoutView.ets +277 -0
  197. package/harmony/flash_list/src/main/ets/RNCellContainer.ets +113 -0
  198. package/harmony/flash_list/src/main/module.json5 +9 -0
  199. package/harmony/flash_list/src/main/resources/base/element/color.json +8 -0
  200. package/harmony/flash_list/src/main/resources/base/element/string.json +16 -0
  201. package/harmony/flash_list/src/main/resources/base/media/icon.png +0 -0
  202. package/harmony/flash_list/src/main/resources/base/profile/main_pages.json +5 -0
  203. package/harmony/flash_list/src/main/resources/en_US/element/string.json +16 -0
  204. package/harmony/flash_list/src/main/resources/zh_CN/element/string.json +16 -0
  205. package/harmony/flash_list.har +0 -0
  206. package/jestSetup.js +41 -0
  207. package/package.json +82 -0
  208. package/src/AnimatedFlashList.ts +35 -0
  209. package/src/FlashList.tsx +955 -0
  210. package/src/FlashListProps.ts +359 -0
  211. package/src/GridLayoutProviderWithProps.ts +204 -0
  212. package/src/MasonryFlashList.tsx +499 -0
  213. package/src/PureComponentWrapper.tsx +65 -0
  214. package/src/benchmark/AutoScrollHelper.ts +94 -0
  215. package/src/benchmark/JSFPSMonitor.ts +98 -0
  216. package/src/benchmark/roundToDecimalPlaces.ts +28 -0
  217. package/src/benchmark/useBenchmark.ts +264 -0
  218. package/src/benchmark/useBlankAreaTracker.ts +141 -0
  219. package/src/benchmark/useDataMultiplier.ts +43 -0
  220. package/src/benchmark/useFlatListBenchmark.ts +131 -0
  221. package/src/errors/CustomError.ts +34 -0
  222. package/src/errors/ExceptionList.ts +52 -0
  223. package/src/errors/Warnings.ts +39 -0
  224. package/src/fabric/AutoLayoutNativeComponent.ts +52 -0
  225. package/src/fabric/CellContainerNativeComponent.ts +35 -0
  226. package/src/index.ts +67 -0
  227. package/src/native/auto-layout/AutoLayoutView.tsx +97 -0
  228. package/src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts +31 -0
  229. package/src/native/auto-layout/AutoLayoutViewNativeComponent.harmony.ts +31 -0
  230. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts +31 -0
  231. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ts +31 -0
  232. package/src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts +41 -0
  233. package/src/native/cell-container/CellContainer.android.ts +31 -0
  234. package/src/native/cell-container/CellContainer.harmony.ts +31 -0
  235. package/src/native/cell-container/CellContainer.ios.ts +31 -0
  236. package/src/native/cell-container/CellContainer.tsx +38 -0
  237. package/src/native/cell-container/CellContainer.web.tsx +33 -0
  238. package/src/native/config/PlatformHelper.android.ts +53 -0
  239. package/src/native/config/PlatformHelper.harmony.ts +52 -0
  240. package/src/native/config/PlatformHelper.ios.ts +52 -0
  241. package/src/native/config/PlatformHelper.ts +53 -0
  242. package/src/native/config/PlatformHelper.web.ts +58 -0
  243. package/src/utils/AverageWindow.ts +73 -0
  244. package/src/utils/ContentContainerUtils.ts +116 -0
  245. package/src/viewability/ViewToken.ts +31 -0
  246. package/src/viewability/ViewabilityHelper.ts +190 -0
  247. package/src/viewability/ViewabilityManager.ts +169 -0
@@ -0,0 +1,602 @@
1
+ "use strict";
2
+ /**
3
+ * MIT License
4
+ *
5
+ * Copyright (C) 2024 Huawei Device Co., Ltd.
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in all
15
+ * copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ * SOFTWARE.
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ var tslib_1 = require("tslib");
27
+ var react_1 = tslib_1.__importDefault(require("react"));
28
+ var react_native_1 = require("react-native");
29
+ var recyclerlistview_1 = require("recyclerlistview");
30
+ var sticky_1 = tslib_1.__importDefault(require("recyclerlistview/sticky"));
31
+ var AutoLayoutView_1 = tslib_1.__importDefault(require("./native/auto-layout/AutoLayoutView"));
32
+ var CellContainer_1 = tslib_1.__importDefault(require("./native/cell-container/CellContainer"));
33
+ var PureComponentWrapper_1 = require("./PureComponentWrapper");
34
+ var GridLayoutProviderWithProps_1 = tslib_1.__importDefault(require("./GridLayoutProviderWithProps"));
35
+ var CustomError_1 = tslib_1.__importDefault(require("./errors/CustomError"));
36
+ var ExceptionList_1 = tslib_1.__importDefault(require("./errors/ExceptionList"));
37
+ var Warnings_1 = tslib_1.__importDefault(require("./errors/Warnings"));
38
+ var ViewabilityManager_1 = tslib_1.__importDefault(require("./viewability/ViewabilityManager"));
39
+ var FlashListProps_1 = require("./FlashListProps");
40
+ var PlatformHelper_1 = require("./native/config/PlatformHelper");
41
+ var ContentContainerUtils_1 = require("./utils/ContentContainerUtils");
42
+ var StickyHeaderContainer = sticky_1.default;
43
+ var FlashList = /** @class */ (function (_super) {
44
+ tslib_1.__extends(FlashList, _super);
45
+ function FlashList(props) {
46
+ var _this = this;
47
+ var _a;
48
+ _this = _super.call(this, props) || this;
49
+ _this.listFixedDimensionSize = 0;
50
+ _this.transformStyle = PlatformHelper_1.PlatformConfig.invertedTransformStyle;
51
+ _this.transformStyleHorizontal = PlatformHelper_1.PlatformConfig.invertedTransformStyleHorizontal;
52
+ _this.distanceFromWindow = 0;
53
+ _this.contentStyle = {
54
+ paddingBottom: 0,
55
+ paddingTop: 0,
56
+ paddingLeft: 0,
57
+ paddingRight: 0,
58
+ };
59
+ _this.loadStartTime = 0;
60
+ _this.isListLoaded = false;
61
+ _this.windowCorrectionConfig = {
62
+ value: {
63
+ windowShift: 0,
64
+ startCorrection: 0,
65
+ endCorrection: 0,
66
+ },
67
+ applyToItemScroll: true,
68
+ applyToInitialOffset: true,
69
+ };
70
+ _this.isEmptyList = false;
71
+ _this.onEndReached = function () {
72
+ var _a, _b;
73
+ (_b = (_a = _this.props).onEndReached) === null || _b === void 0 ? void 0 : _b.call(_a);
74
+ };
75
+ _this.getRefreshControl = function () {
76
+ if (_this.props.onRefresh) {
77
+ return (react_1.default.createElement(react_native_1.RefreshControl, { refreshing: Boolean(_this.props.refreshing), progressViewOffset: _this.props.progressViewOffset, onRefresh: _this.props.onRefresh }));
78
+ }
79
+ };
80
+ _this.onScrollBeginDrag = function (event) {
81
+ var _a, _b;
82
+ _this.recordInteraction();
83
+ (_b = (_a = _this.props).onScrollBeginDrag) === null || _b === void 0 ? void 0 : _b.call(_a, event);
84
+ };
85
+ _this.onScroll = function (event) {
86
+ var _a, _b;
87
+ _this.recordInteraction();
88
+ _this.viewabilityManager.updateViewableItems();
89
+ (_b = (_a = _this.props).onScroll) === null || _b === void 0 ? void 0 : _b.call(_a, event);
90
+ };
91
+ _this.handleSizeChange = function (event) {
92
+ var _a;
93
+ _this.validateListSize(event);
94
+ var newSize = _this.props.horizontal
95
+ ? event.nativeEvent.layout.height
96
+ : event.nativeEvent.layout.width;
97
+ var oldSize = _this.listFixedDimensionSize;
98
+ _this.listFixedDimensionSize = newSize;
99
+ // >0 check is to avoid rerender on mount where it would be redundant
100
+ if (oldSize > 0 && oldSize !== newSize) {
101
+ (_a = _this.rlvRef) === null || _a === void 0 ? void 0 : _a.forceRerender();
102
+ }
103
+ if (_this.props.onLayout) {
104
+ _this.props.onLayout(event);
105
+ }
106
+ };
107
+ _this.container = function (props, children) {
108
+ _this.clearPostLoadTimeout();
109
+ return (react_1.default.createElement(react_1.default.Fragment, null,
110
+ react_1.default.createElement(PureComponentWrapper_1.PureComponentWrapper, { enabled: _this.isListLoaded || children.length > 0 || _this.isEmptyList, contentStyle: _this.props.contentContainerStyle, horizontal: _this.props.horizontal, header: _this.props.ListHeaderComponent, extraData: _this.state.extraData, headerStyle: _this.props.ListHeaderComponentStyle, inverted: _this.props.inverted, renderer: _this.header }),
111
+ react_1.default.createElement(AutoLayoutView_1.default, tslib_1.__assign({}, props, { onBlankAreaEvent: _this.props.onBlankArea, onLayout: _this.updateDistanceFromWindow, disableAutoLayout: _this.props.disableAutoLayout }), children),
112
+ _this.isEmptyList
113
+ ? _this.getValidComponent(_this.props.ListEmptyComponent)
114
+ : null,
115
+ react_1.default.createElement(PureComponentWrapper_1.PureComponentWrapper, { enabled: _this.isListLoaded || children.length > 0 || _this.isEmptyList, contentStyle: _this.props.contentContainerStyle, horizontal: _this.props.horizontal, header: _this.props.ListFooterComponent, extraData: _this.state.extraData, headerStyle: _this.props.ListFooterComponentStyle, inverted: _this.props.inverted, renderer: _this.footer }),
116
+ _this.getComponentForHeightMeasurement()));
117
+ };
118
+ _this.itemContainer = function (props, parentProps) {
119
+ var _a;
120
+ var CellRendererComponent = (_a = _this.props.CellRendererComponent) !== null && _a !== void 0 ? _a : CellContainer_1.default;
121
+ return (react_1.default.createElement(CellRendererComponent, tslib_1.__assign({}, props, { style: tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, props.style), { flexDirection: _this.props.horizontal ? "row" : "column", alignItems: "stretch" }), _this.getTransform()), (0, PlatformHelper_1.getCellContainerPlatformStyles)(_this.props.inverted, parentProps)), index: parentProps.index }),
122
+ react_1.default.createElement(PureComponentWrapper_1.PureComponentWrapper, { extendedState: parentProps.extendedState, internalSnapshot: parentProps.internalSnapshot, data: parentProps.data, arg: parentProps.index, renderer: _this.getCellContainerChild })));
123
+ };
124
+ _this.updateDistanceFromWindow = function (event) {
125
+ var newDistanceFromWindow = _this.props.horizontal
126
+ ? event.nativeEvent.layout.x
127
+ : event.nativeEvent.layout.y;
128
+ if (_this.distanceFromWindow !== newDistanceFromWindow) {
129
+ _this.distanceFromWindow = newDistanceFromWindow;
130
+ _this.windowCorrectionConfig.value.windowShift = -_this.distanceFromWindow;
131
+ _this.viewabilityManager.updateViewableItems();
132
+ }
133
+ };
134
+ _this.separator = function (index) {
135
+ // Make sure we have data and don't read out of bounds
136
+ if (_this.props.data === null ||
137
+ _this.props.data === undefined ||
138
+ index + 1 >= _this.props.data.length) {
139
+ return null;
140
+ }
141
+ var leadingItem = _this.props.data[index];
142
+ var trailingItem = _this.props.data[index + 1];
143
+ var props = {
144
+ leadingItem: leadingItem,
145
+ trailingItem: trailingItem,
146
+ // TODO: Missing sections as we don't have this feature implemented yet. Implement section, leadingSection and trailingSection.
147
+ // https://github.com/facebook/react-native/blob/8bd3edec88148d0ab1f225d2119435681fbbba33/Libraries/Lists/VirtualizedSectionList.js#L285-L294
148
+ };
149
+ var Separator = _this.props.ItemSeparatorComponent;
150
+ return Separator && react_1.default.createElement(Separator, tslib_1.__assign({}, props));
151
+ };
152
+ _this.header = function () {
153
+ return (react_1.default.createElement(react_1.default.Fragment, null,
154
+ react_1.default.createElement(react_native_1.View, { style: {
155
+ paddingTop: _this.contentStyle.paddingTop,
156
+ paddingLeft: _this.contentStyle.paddingLeft,
157
+ } }),
158
+ react_1.default.createElement(react_native_1.View, { style: [_this.props.ListHeaderComponentStyle, _this.getTransform()] }, _this.getValidComponent(_this.props.ListHeaderComponent))));
159
+ };
160
+ _this.footer = function () {
161
+ var _a;
162
+ /** The web version of CellContainer uses a div directly which doesn't compose styles the way a View does.
163
+ * We will skip using CellContainer on web to avoid this issue. `getFooterContainer` on web will
164
+ * return a View. */
165
+ var FooterContainer = (_a = (0, PlatformHelper_1.getFooterContainer)()) !== null && _a !== void 0 ? _a : CellContainer_1.default;
166
+ return (react_1.default.createElement(react_1.default.Fragment, null,
167
+ react_1.default.createElement(FooterContainer, { index: -1, style: [_this.props.ListFooterComponentStyle, _this.getTransform()] }, _this.getValidComponent(_this.props.ListFooterComponent)),
168
+ react_1.default.createElement(react_native_1.View, { style: {
169
+ paddingBottom: _this.contentStyle.paddingBottom,
170
+ paddingRight: _this.contentStyle.paddingRight,
171
+ } })));
172
+ };
173
+ _this.getComponentForHeightMeasurement = function () {
174
+ return _this.props.horizontal &&
175
+ !_this.props.disableHorizontalListHeightMeasurement &&
176
+ !_this.isListLoaded &&
177
+ _this.state.dataProvider.getSize() > 0 ? (react_1.default.createElement(react_native_1.View, { style: { opacity: 0 }, pointerEvents: "none" }, _this.rowRendererWithIndex(Math.min(_this.state.dataProvider.getSize() - 1, 1), FlashListProps_1.RenderTargetOptions.Measurement))) : null;
178
+ };
179
+ _this.applyWindowCorrection = function (_, __, correctionObject) {
180
+ var _a;
181
+ correctionObject.windowShift = -_this.distanceFromWindow;
182
+ (_a = _this.stickyContentContainerRef) === null || _a === void 0 ? void 0 : _a.setEnabled(_this.isStickyEnabled);
183
+ };
184
+ _this.rowRendererSticky = function (index) {
185
+ return _this.rowRendererWithIndex(index, FlashListProps_1.RenderTargetOptions.StickyHeader);
186
+ };
187
+ _this.rowRendererWithIndex = function (index, target) {
188
+ var _a, _b, _c;
189
+ // known issue: expected to pass separators which isn't available in RLV
190
+ return (_b = (_a = _this.props).renderItem) === null || _b === void 0 ? void 0 : _b.call(_a, {
191
+ item: _this.props.data[index],
192
+ index: index,
193
+ target: target,
194
+ extraData: (_c = _this.state.extraData) === null || _c === void 0 ? void 0 : _c.value,
195
+ });
196
+ };
197
+ /**
198
+ * This will prevent render item calls unless data changes.
199
+ * Output of this method is received as children object so returning null here is no issue as long as we handle it inside our child container.
200
+ * @module getCellContainerChild acts as the new rowRenderer and is called directly from our child container.
201
+ */
202
+ _this.emptyRowRenderer = function () {
203
+ return null;
204
+ };
205
+ _this.getCellContainerChild = function (index) {
206
+ return (react_1.default.createElement(react_1.default.Fragment, null,
207
+ _this.props.inverted ? _this.separator(index) : null,
208
+ react_1.default.createElement(react_native_1.View, { style: {
209
+ flexDirection: _this.props.horizontal || _this.props.numColumns === 1
210
+ ? "column"
211
+ : "row",
212
+ } }, _this.rowRendererWithIndex(index, FlashListProps_1.RenderTargetOptions.Cell)),
213
+ _this.props.inverted ? null : _this.separator(index)));
214
+ };
215
+ _this.recyclerRef = function (ref) {
216
+ _this.rlvRef = ref;
217
+ };
218
+ _this.stickyContentRef = function (ref) {
219
+ _this.stickyContentContainerRef = ref;
220
+ };
221
+ _this.stickyOverrideRowRenderer = function (_, rowData, index, ___) {
222
+ return (react_1.default.createElement(PureComponentWrapper_1.PureComponentWrapper, { ref: _this.stickyContentRef, enabled: _this.isStickyEnabled,
223
+ // We're passing rowData to ensure that sticky headers are updated when data changes
224
+ rowData: rowData, arg: index, renderer: _this.rowRendererSticky }));
225
+ };
226
+ _this.onItemLayout = function (index) {
227
+ // Informing the layout provider about change to an item's layout. It already knows the dimensions so there's not need to pass them.
228
+ _this.state.layoutProvider.reportItemLayout(index);
229
+ _this.raiseOnLoadEventIfNeeded();
230
+ };
231
+ _this.raiseOnLoadEventIfNeeded = function () {
232
+ var _a, _b;
233
+ if (!_this.isListLoaded) {
234
+ _this.isListLoaded = true;
235
+ (_b = (_a = _this.props).onLoad) === null || _b === void 0 ? void 0 : _b.call(_a, {
236
+ elapsedTimeInMs: Date.now() - _this.loadStartTime,
237
+ });
238
+ _this.runAfterOnLoad();
239
+ }
240
+ };
241
+ _this.runAfterOnLoad = function () {
242
+ if (_this.props.estimatedItemSize === undefined) {
243
+ _this.itemSizeWarningTimeoutId = setTimeout(function () {
244
+ var averageItemSize = Math.floor(_this.state.layoutProvider.averageItemSize);
245
+ console.warn(Warnings_1.default.estimatedItemSizeMissingWarning.replace("@size", averageItemSize.toString()));
246
+ }, 1000);
247
+ }
248
+ _this.postLoadTimeoutId = setTimeout(function () {
249
+ // This force update is required to remove dummy element rendered to measure horizontal list height when the list doesn't update on its own.
250
+ // In most cases this timeout will never be triggered because list usually updates atleast once and this timeout is cleared on update.
251
+ if (_this.props.horizontal) {
252
+ _this.forceUpdate();
253
+ }
254
+ }, 500);
255
+ };
256
+ _this.clearPostLoadTimeout = function () {
257
+ if (_this.postLoadTimeoutId !== undefined) {
258
+ clearTimeout(_this.postLoadTimeoutId);
259
+ _this.postLoadTimeoutId = undefined;
260
+ }
261
+ };
262
+ _this.clearRenderSizeWarningTimeout = function () {
263
+ if (_this.renderedSizeWarningTimeoutId !== undefined) {
264
+ clearTimeout(_this.renderedSizeWarningTimeoutId);
265
+ _this.renderedSizeWarningTimeoutId = undefined;
266
+ }
267
+ };
268
+ /**
269
+ * Tells the list an interaction has occurred, which should trigger viewability calculations, e.g. if waitForInteractions is true and the user has not scrolled.
270
+ * This is typically called by taps on items or by navigation actions.
271
+ */
272
+ _this.recordInteraction = function () {
273
+ _this.viewabilityManager.recordInteraction();
274
+ };
275
+ /**
276
+ * Retriggers viewability calculations. Useful to imperatively trigger viewability calculations.
277
+ */
278
+ _this.recomputeViewableItems = function () {
279
+ _this.viewabilityManager.recomputeViewableItems();
280
+ };
281
+ _this.loadStartTime = Date.now();
282
+ _this.validateProps();
283
+ if (props.estimatedListSize) {
284
+ if (props.horizontal) {
285
+ _this.listFixedDimensionSize = props.estimatedListSize.height;
286
+ }
287
+ else {
288
+ _this.listFixedDimensionSize = props.estimatedListSize.width;
289
+ }
290
+ }
291
+ _this.distanceFromWindow =
292
+ (_a = props.estimatedFirstItemOffset) !== null && _a !== void 0 ? _a : ((props.ListHeaderComponent && 1) || 0);
293
+ // eslint-disable-next-line react/state-in-constructor
294
+ _this.state = FlashList.getInitialMutableState(_this);
295
+ _this.viewabilityManager = new ViewabilityManager_1.default(_this);
296
+ _this.itemAnimator = (0, PlatformHelper_1.getItemAnimator)();
297
+ return _this;
298
+ }
299
+ FlashList.prototype.validateProps = function () {
300
+ var _a, _b;
301
+ if (this.props.onRefresh && typeof this.props.refreshing !== "boolean") {
302
+ throw new CustomError_1.default(ExceptionList_1.default.refreshBooleanMissing);
303
+ }
304
+ if (Number((_a = this.props.stickyHeaderIndices) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
305
+ this.props.horizontal) {
306
+ throw new CustomError_1.default(ExceptionList_1.default.stickyWhileHorizontalNotSupported);
307
+ }
308
+ if (Number(this.props.numColumns) > 1 && this.props.horizontal) {
309
+ throw new CustomError_1.default(ExceptionList_1.default.columnsWhileHorizontalNotSupported);
310
+ }
311
+ // `createAnimatedComponent` always passes a blank style object. To avoid warning while using AnimatedFlashList we've modified the check
312
+ // `style` prop can be an array. So we need to validate every object in array. Check: https://github.com/Shopify/flash-list/issues/651
313
+ if (__DEV__ &&
314
+ Object.keys(react_native_1.StyleSheet.flatten((_b = this.props.style) !== null && _b !== void 0 ? _b : {})).length > 0) {
315
+ console.warn(Warnings_1.default.styleUnsupported);
316
+ }
317
+ if ((0, ContentContainerUtils_1.hasUnsupportedKeysInContentContainerStyle)(this.props.contentContainerStyle)) {
318
+ console.warn(Warnings_1.default.styleContentContainerUnsupported);
319
+ }
320
+ };
321
+ // Some of the state variables need to update when props change
322
+ FlashList.getDerivedStateFromProps = function (nextProps, prevState) {
323
+ var _a, _b;
324
+ var newState = tslib_1.__assign({}, prevState);
325
+ if (prevState.numColumns !== nextProps.numColumns) {
326
+ newState.numColumns = nextProps.numColumns || 1;
327
+ newState.layoutProvider = FlashList.getLayoutProvider(newState.numColumns, nextProps);
328
+ }
329
+ else if (prevState.layoutProvider.updateProps(nextProps).hasExpired) {
330
+ newState.layoutProvider = FlashList.getLayoutProvider(newState.numColumns, nextProps);
331
+ }
332
+ // RLV retries to reposition the first visible item on layout provider change.
333
+ // It's not required in our case so we're disabling it
334
+ newState.layoutProvider.shouldRefreshWithAnchoring = Boolean(!((_a = prevState.layoutProvider) === null || _a === void 0 ? void 0 : _a.hasExpired));
335
+ if (nextProps.data !== prevState.data) {
336
+ newState.data = nextProps.data;
337
+ newState.dataProvider = prevState.dataProvider.cloneWithRows(nextProps.data);
338
+ if (nextProps.renderItem !== prevState.renderItem) {
339
+ newState.extraData = tslib_1.__assign({}, prevState.extraData);
340
+ }
341
+ }
342
+ if (nextProps.extraData !== ((_b = prevState.extraData) === null || _b === void 0 ? void 0 : _b.value)) {
343
+ newState.extraData = { value: nextProps.extraData };
344
+ }
345
+ newState.renderItem = nextProps.renderItem;
346
+ return newState;
347
+ };
348
+ FlashList.getInitialMutableState = function (flashList) {
349
+ var getStableId;
350
+ if (flashList.props.keyExtractor !== null &&
351
+ flashList.props.keyExtractor !== undefined) {
352
+ getStableId = function (index) {
353
+ // We assume `keyExtractor` function will never change from being `null | undefined` to defined and vice versa.
354
+ // Similarly, data should never be `null | undefined` when `getStableId` is called.
355
+ return flashList.props.keyExtractor(flashList.props.data[index], index).toString();
356
+ };
357
+ }
358
+ return {
359
+ data: null,
360
+ layoutProvider: null,
361
+ dataProvider: new recyclerlistview_1.DataProvider(function (r1, r2) {
362
+ return r1 !== r2;
363
+ }, getStableId),
364
+ numColumns: 0,
365
+ };
366
+ };
367
+ // Using only grid layout provider as it can also act as a listview, sizeProvider is a function to support future overrides
368
+ FlashList.getLayoutProvider = function (numColumns, flashListProps) {
369
+ return new GridLayoutProviderWithProps_1.default(
370
+ // max span or, total columns
371
+ numColumns, function (index, props) {
372
+ var _a;
373
+ // type of the item for given index
374
+ var type = (_a = props.getItemType) === null || _a === void 0 ? void 0 : _a.call(props, props.data[index], index, props.extraData);
375
+ return type || 0;
376
+ }, function (index, props, mutableLayout) {
377
+ var _a, _b;
378
+ // span of the item at given index, item can choose to span more than one column
379
+ (_a = props.overrideItemLayout) === null || _a === void 0 ? void 0 : _a.call(props, mutableLayout, props.data[index], index, numColumns, props.extraData);
380
+ return (_b = mutableLayout === null || mutableLayout === void 0 ? void 0 : mutableLayout.span) !== null && _b !== void 0 ? _b : 1;
381
+ }, function (index, props, mutableLayout) {
382
+ var _a;
383
+ // estimated size of the item an given index
384
+ (_a = props.overrideItemLayout) === null || _a === void 0 ? void 0 : _a.call(props, mutableLayout, props.data[index], index, numColumns, props.extraData);
385
+ return mutableLayout === null || mutableLayout === void 0 ? void 0 : mutableLayout.size;
386
+ }, flashListProps);
387
+ };
388
+ FlashList.prototype.componentDidMount = function () {
389
+ var _a;
390
+ if (((_a = this.props.data) === null || _a === void 0 ? void 0 : _a.length) === 0) {
391
+ this.raiseOnLoadEventIfNeeded();
392
+ }
393
+ };
394
+ FlashList.prototype.componentWillUnmount = function () {
395
+ this.viewabilityManager.dispose();
396
+ this.clearPostLoadTimeout();
397
+ this.clearRenderSizeWarningTimeout();
398
+ if (this.itemSizeWarningTimeoutId !== undefined) {
399
+ clearTimeout(this.itemSizeWarningTimeoutId);
400
+ }
401
+ };
402
+ FlashList.prototype.render = function () {
403
+ this.isEmptyList = this.state.dataProvider.getSize() === 0;
404
+ (0, ContentContainerUtils_1.updateContentStyle)(this.contentStyle, this.props.contentContainerStyle);
405
+ var _a = this.props, drawDistance = _a.drawDistance, removeClippedSubviews = _a.removeClippedSubviews, stickyHeaderIndices = _a.stickyHeaderIndices, horizontal = _a.horizontal, onEndReachedThreshold = _a.onEndReachedThreshold, estimatedListSize = _a.estimatedListSize, initialScrollIndex = _a.initialScrollIndex, style = _a.style, contentContainerStyle = _a.contentContainerStyle, renderScrollComponent = _a.renderScrollComponent, restProps = tslib_1.__rest(_a, ["drawDistance", "removeClippedSubviews", "stickyHeaderIndices", "horizontal", "onEndReachedThreshold", "estimatedListSize", "initialScrollIndex", "style", "contentContainerStyle", "renderScrollComponent"]);
406
+ // RecyclerListView simply ignores if initialScrollIndex is set to 0 because it doesn't understand headers
407
+ // Using initialOffset to force RLV to scroll to the right place
408
+ var initialOffset = (this.isInitialScrollIndexInFirstRow() && this.distanceFromWindow) ||
409
+ undefined;
410
+ var finalDrawDistance = drawDistance === undefined
411
+ ? PlatformHelper_1.PlatformConfig.defaultDrawDistance
412
+ : drawDistance;
413
+ return (react_1.default.createElement(StickyHeaderContainer, { overrideRowRenderer: this.stickyOverrideRowRenderer, applyWindowCorrection: this.applyWindowCorrection, stickyHeaderIndices: stickyHeaderIndices, style: this.props.horizontal
414
+ ? tslib_1.__assign({}, this.getTransform()) : tslib_1.__assign({ flex: 1, overflow: "hidden" }, this.getTransform()) },
415
+ react_1.default.createElement(recyclerlistview_1.ProgressiveListView, tslib_1.__assign({}, restProps, { ref: this.recyclerRef, layoutProvider: this.state.layoutProvider, dataProvider: this.state.dataProvider, rowRenderer: this.emptyRowRenderer, canChangeSize: true, isHorizontal: Boolean(horizontal), scrollViewProps: tslib_1.__assign({ onScrollBeginDrag: this.onScrollBeginDrag, onLayout: this.handleSizeChange, refreshControl: this.props.refreshControl || this.getRefreshControl(),
416
+ // Min values are being used to suppress RLV's bounded exception
417
+ style: { minHeight: 1, minWidth: 1 }, contentContainerStyle: tslib_1.__assign({ backgroundColor: this.contentStyle.backgroundColor,
418
+ // Required to handle a scrollview bug. Check: https://github.com/Shopify/flash-list/pull/187
419
+ minHeight: 1, minWidth: 1 }, (0, ContentContainerUtils_1.getContentContainerPadding)(this.contentStyle, horizontal)) }, this.props.overrideProps), forceNonDeterministicRendering: true, renderItemContainer: this.itemContainer, renderContentContainer: this.container, onEndReached: this.onEndReached, onEndReachedThresholdRelative: onEndReachedThreshold || undefined, extendedState: this.state.extraData, layoutSize: estimatedListSize, maxRenderAhead: 3 * finalDrawDistance, finalRenderAheadOffset: finalDrawDistance, renderAheadStep: finalDrawDistance, initialRenderIndex: (!this.isInitialScrollIndexInFirstRow() && initialScrollIndex) ||
420
+ undefined, initialOffset: initialOffset, onItemLayout: this.onItemLayout, onScroll: this.onScroll, onVisibleIndicesChanged: this.viewabilityManager.shouldListenToVisibleIndices
421
+ ? this.viewabilityManager.onVisibleIndicesChanged
422
+ : undefined, windowCorrectionConfig: this.getUpdatedWindowCorrectionConfig(), itemAnimator: this.itemAnimator, suppressBoundedSizeException: true, externalScrollView: renderScrollComponent }))));
423
+ };
424
+ FlashList.prototype.getUpdatedWindowCorrectionConfig = function () {
425
+ // If the initial scroll index is in the first row then we're forcing RLV to use initialOffset and thus we need to disable window correction
426
+ // This isn't clean but it's the only way to get RLV to scroll to the right place
427
+ // TODO: Remove this when RLV fixes this. Current implementation will also fail if column span is overridden in the first row.
428
+ if (this.isInitialScrollIndexInFirstRow()) {
429
+ this.windowCorrectionConfig.applyToInitialOffset = false;
430
+ }
431
+ else {
432
+ this.windowCorrectionConfig.applyToInitialOffset = true;
433
+ }
434
+ this.windowCorrectionConfig.value.windowShift = -this.distanceFromWindow;
435
+ return this.windowCorrectionConfig;
436
+ };
437
+ FlashList.prototype.isInitialScrollIndexInFirstRow = function () {
438
+ var _a;
439
+ return (((_a = this.props.initialScrollIndex) !== null && _a !== void 0 ? _a : this.state.numColumns) <
440
+ this.state.numColumns);
441
+ };
442
+ FlashList.prototype.validateListSize = function (event) {
443
+ var _a = event.nativeEvent.layout, height = _a.height, width = _a.width;
444
+ this.clearRenderSizeWarningTimeout();
445
+ if (Math.floor(height) <= 1 || Math.floor(width) <= 1) {
446
+ this.renderedSizeWarningTimeoutId = setTimeout(function () {
447
+ console.warn(Warnings_1.default.unusableRenderedSize);
448
+ }, 1000);
449
+ }
450
+ };
451
+ FlashList.prototype.getTransform = function () {
452
+ var transformStyle = this.props.horizontal
453
+ ? this.transformStyleHorizontal
454
+ : this.transformStyle;
455
+ return (this.props.inverted && transformStyle) || undefined;
456
+ };
457
+ FlashList.prototype.getValidComponent = function (component) {
458
+ var PassedComponent = component;
459
+ return ((react_1.default.isValidElement(PassedComponent) && PassedComponent) ||
460
+ (PassedComponent && react_1.default.createElement(PassedComponent, null)) ||
461
+ null);
462
+ };
463
+ Object.defineProperty(FlashList.prototype, "isStickyEnabled", {
464
+ get: function () {
465
+ var _a;
466
+ var currentOffset = ((_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getCurrentScrollOffset()) || 0;
467
+ return currentOffset >= this.distanceFromWindow;
468
+ },
469
+ enumerable: false,
470
+ configurable: true
471
+ });
472
+ /**
473
+ * Disables recycling for the next frame so that layout animations run well.
474
+ * Warning: Avoid this when making large changes to the data as the list might draw too much to run animations. Single item insertions/deletions
475
+ * should be good. With recycling paused the list cannot do much optimization.
476
+ * The next render will run as normal and reuse items.
477
+ */
478
+ FlashList.prototype.prepareForLayoutAnimationRender = function () {
479
+ var _a;
480
+ if (this.props.keyExtractor === null ||
481
+ this.props.keyExtractor === undefined) {
482
+ console.warn(Warnings_1.default.missingKeyExtractor);
483
+ }
484
+ else {
485
+ (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.prepareForLayoutAnimationRender();
486
+ }
487
+ };
488
+ FlashList.prototype.scrollToEnd = function (params) {
489
+ var _a;
490
+ (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.scrollToEnd(Boolean(params === null || params === void 0 ? void 0 : params.animated));
491
+ };
492
+ FlashList.prototype.scrollToIndex = function (params) {
493
+ var _a, _b, _c, _d, _e;
494
+ var layout = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getLayout(params.index);
495
+ var listSize = (_b = this.rlvRef) === null || _b === void 0 ? void 0 : _b.getRenderedSize();
496
+ if (layout && listSize) {
497
+ var itemOffset = this.props.horizontal ? layout.x : layout.y;
498
+ var fixedDimension = this.props.horizontal
499
+ ? listSize.width
500
+ : listSize.height;
501
+ var itemSize = this.props.horizontal ? layout.width : layout.height;
502
+ var scrollOffset = Math.max(0, itemOffset - ((_c = params.viewPosition) !== null && _c !== void 0 ? _c : 0) * (fixedDimension - itemSize)) - ((_d = params.viewOffset) !== null && _d !== void 0 ? _d : 0);
503
+ (_e = this.rlvRef) === null || _e === void 0 ? void 0 : _e.scrollToOffset(scrollOffset, scrollOffset, Boolean(params.animated), true);
504
+ }
505
+ };
506
+ FlashList.prototype.scrollToItem = function (params) {
507
+ var _a, _b;
508
+ var index = (_b = (_a = this.props.data) === null || _a === void 0 ? void 0 : _a.indexOf(params.item)) !== null && _b !== void 0 ? _b : -1;
509
+ if (index >= 0) {
510
+ this.scrollToIndex(tslib_1.__assign(tslib_1.__assign({}, params), { index: index }));
511
+ }
512
+ };
513
+ FlashList.prototype.scrollToOffset = function (params) {
514
+ var _a;
515
+ var x = this.props.horizontal ? params.offset : 0;
516
+ var y = this.props.horizontal ? 0 : params.offset;
517
+ (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.scrollToOffset(x, y, Boolean(params.animated));
518
+ };
519
+ FlashList.prototype.getScrollableNode = function () {
520
+ var _a, _b;
521
+ return ((_b = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getScrollableNode) === null || _b === void 0 ? void 0 : _b.call(_a)) || null;
522
+ };
523
+ Object.defineProperty(FlashList.prototype, "recyclerlistview_unsafe", {
524
+ /**
525
+ * Allows access to internal recyclerlistview. This is useful for enabling access to its public APIs.
526
+ * Warning: We may swap recyclerlistview for something else in the future. Use with caution.
527
+ */
528
+ /* eslint-disable @typescript-eslint/naming-convention */
529
+ get: function () {
530
+ return this.rlvRef;
531
+ },
532
+ enumerable: false,
533
+ configurable: true
534
+ });
535
+ Object.defineProperty(FlashList.prototype, "firstItemOffset", {
536
+ /**
537
+ * Specifies how far the first item is from top of the list. This would normally be a sum of header size and top/left padding applied to the list.
538
+ */
539
+ get: function () {
540
+ return this.distanceFromWindow;
541
+ },
542
+ enumerable: false,
543
+ configurable: true
544
+ });
545
+ /**
546
+ * FlashList will skip using layout cache on next update. Can be useful when you know the layout will change drastically for example, orientation change when used as a carousel.
547
+ */
548
+ FlashList.prototype.clearLayoutCacheOnUpdate = function () {
549
+ this.state.layoutProvider.markExpired();
550
+ };
551
+ /**
552
+ * Returns the dimensions of the child container.
553
+ * @returns {Object} The dimensions of the child container.
554
+ */
555
+ FlashList.prototype.getChildContainerDimensions = function () {
556
+ var _a;
557
+ return (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getContentDimension();
558
+ };
559
+ /**
560
+ * Returns the layout of the item at the given index.
561
+ * @param index - The index of the item to get the layout for.
562
+ * @returns {Object} The layout of the item at the given index.
563
+ */
564
+ FlashList.prototype.getLayout = function (index) {
565
+ var _a;
566
+ return (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getLayout(index);
567
+ };
568
+ /**
569
+ * Returns the size of the list.
570
+ * @returns {Object} The size of the list.
571
+ */
572
+ FlashList.prototype.getWindowSize = function () {
573
+ var _a;
574
+ return (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getRenderedSize();
575
+ };
576
+ /**
577
+ * Returns the absolute last scroll offset of the list.
578
+ * @returns {number} The absolute last scroll offset of the list.
579
+ */
580
+ FlashList.prototype.getAbsoluteLastScrollOffset = function () {
581
+ var _a, _b;
582
+ return (_b = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.getCurrentScrollOffset()) !== null && _b !== void 0 ? _b : 0;
583
+ };
584
+ /**
585
+ * Returns the first item offset of the list.
586
+ * @returns {number} The first item offset of the list.
587
+ */
588
+ FlashList.prototype.getFirstItemOffset = function () {
589
+ return this.firstItemOffset;
590
+ };
591
+ FlashList.prototype.getFirstVisibleIndex = function () {
592
+ var _a, _b;
593
+ return (_b = (_a = this.rlvRef) === null || _a === void 0 ? void 0 : _a.findApproxFirstVisibleIndex()) !== null && _b !== void 0 ? _b : -1;
594
+ };
595
+ FlashList.defaultProps = {
596
+ data: [],
597
+ numColumns: 1,
598
+ };
599
+ return FlashList;
600
+ }(react_1.default.PureComponent));
601
+ exports.default = FlashList;
602
+ //# sourceMappingURL=FlashList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlashList.js","sourceRoot":"","sources":["../src/FlashList.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;;;AAEH,wDAAmC;AACnC,6CAOsB;AACtB,qDAS0B;AAC1B,2EAAgF;AAEhF,+FAAiE;AACjE,gGAAkE;AAClE,+DAA8D;AAC9D,sGAAwE;AACxE,6EAA+C;AAC/C,iFAAmD;AACnD,uEAA4C;AAC5C,gGAAkE;AAClE,mDAI0B;AAC1B,iEAKwC;AACxC,uEAKuC;AAKvC,IAAM,qBAAqB,GACzB,gBAAoD,CAAC;AAevD;IAA2B,qCAG1B;IA0CC,mBAAY,KAAwB;QAApC,iBAiBC;;gBAhBC,kBAAM,KAAK,CAAC;QAxCN,4BAAsB,GAAG,CAAC,CAAC;QAC3B,oBAAc,GAAG,+BAAc,CAAC,sBAAsB,CAAC;QACvD,8BAAwB,GAC9B,+BAAc,CAAC,gCAAgC,CAAC;QAE1C,wBAAkB,GAAG,CAAC,CAAC;QACvB,kBAAY,GAAyB;YAC3C,aAAa,EAAE,CAAC;YAChB,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,CAAC;SAChB,CAAC;QAEM,mBAAa,GAAG,CAAC,CAAC;QAClB,kBAAY,GAAG,KAAK,CAAC;QACrB,4BAAsB,GAA2B;YACvD,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC;gBACd,eAAe,EAAE,CAAC;gBAClB,aAAa,EAAE,CAAC;aACjB;YACD,iBAAiB,EAAE,IAAI;YACvB,oBAAoB,EAAE,IAAI;SAC3B,CAAC;QAMM,iBAAW,GAAG,KAAK,CAAC;QA0KpB,kBAAY,GAAG;;YACrB,MAAA,MAAA,KAAI,CAAC,KAAK,EAAC,YAAY,kDAAI,CAAC;QAC9B,CAAC,CAAC;QAEM,uBAAiB,GAAG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