@react-native-ohos/flash-list 1.6.4-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 (298) 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 +6 -0
  5. package/dist/AnimatedFlashList.d.ts.map +1 -0
  6. package/dist/AnimatedFlashList.js +8 -0
  7. package/dist/AnimatedFlashList.js.map +1 -0
  8. package/dist/FlashList.d.ts +126 -0
  9. package/dist/FlashList.d.ts.map +1 -0
  10. package/dist/FlashList.js +524 -0
  11. package/dist/FlashList.js.map +1 -0
  12. package/dist/FlashListProps.d.ts +256 -0
  13. package/dist/FlashListProps.d.ts.map +1 -0
  14. package/dist/FlashListProps.js +9 -0
  15. package/dist/FlashListProps.js.map +1 -0
  16. package/dist/GridLayoutProviderWithProps.d.ts +42 -0
  17. package/dist/GridLayoutProviderWithProps.d.ts.map +1 -0
  18. package/dist/GridLayoutProviderWithProps.js +115 -0
  19. package/dist/GridLayoutProviderWithProps.js.map +1 -0
  20. package/dist/MasonryFlashList.d.ts +51 -0
  21. package/dist/MasonryFlashList.d.ts.map +1 -0
  22. package/dist/MasonryFlashList.js +252 -0
  23. package/dist/MasonryFlashList.js.map +1 -0
  24. package/dist/PureComponentWrapper.d.ts +22 -0
  25. package/dist/PureComponentWrapper.d.ts.map +1 -0
  26. package/dist/PureComponentWrapper.js +37 -0
  27. package/dist/PureComponentWrapper.js.map +1 -0
  28. package/dist/__tests__/AverageWindow.test.d.ts +2 -0
  29. package/dist/__tests__/AverageWindow.test.d.ts.map +1 -0
  30. package/dist/__tests__/AverageWindow.test.js +69 -0
  31. package/dist/__tests__/AverageWindow.test.js.map +1 -0
  32. package/dist/__tests__/ContentContainerUtils.test.d.ts +2 -0
  33. package/dist/__tests__/ContentContainerUtils.test.d.ts.map +1 -0
  34. package/dist/__tests__/ContentContainerUtils.test.js +85 -0
  35. package/dist/__tests__/ContentContainerUtils.test.js.map +1 -0
  36. package/dist/__tests__/FlashList.test.d.ts +2 -0
  37. package/dist/__tests__/FlashList.test.d.ts.map +1 -0
  38. package/dist/__tests__/FlashList.test.js +792 -0
  39. package/dist/__tests__/FlashList.test.js.map +1 -0
  40. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts +2 -0
  41. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts.map +1 -0
  42. package/dist/__tests__/GridLayoutProviderWithProps.test.js +143 -0
  43. package/dist/__tests__/GridLayoutProviderWithProps.test.js.map +1 -0
  44. package/dist/__tests__/MasonryFlashList.test.d.ts +2 -0
  45. package/dist/__tests__/MasonryFlashList.test.d.ts.map +1 -0
  46. package/dist/__tests__/MasonryFlashList.test.js +254 -0
  47. package/dist/__tests__/MasonryFlashList.test.js.map +1 -0
  48. package/dist/__tests__/PlatformHelper.web.test.d.ts +2 -0
  49. package/dist/__tests__/PlatformHelper.web.test.d.ts.map +1 -0
  50. package/dist/__tests__/PlatformHelper.web.test.js +33 -0
  51. package/dist/__tests__/PlatformHelper.web.test.js.map +1 -0
  52. package/dist/__tests__/ViewabilityHelper.test.d.ts +2 -0
  53. package/dist/__tests__/ViewabilityHelper.test.d.ts.map +1 -0
  54. package/dist/__tests__/ViewabilityHelper.test.js +187 -0
  55. package/dist/__tests__/ViewabilityHelper.test.js.map +1 -0
  56. package/dist/__tests__/helpers/mountFlashList.d.ts +19 -0
  57. package/dist/__tests__/helpers/mountFlashList.d.ts.map +1 -0
  58. package/dist/__tests__/helpers/mountFlashList.js +44 -0
  59. package/dist/__tests__/helpers/mountFlashList.js.map +1 -0
  60. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts +18 -0
  61. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts.map +1 -0
  62. package/dist/__tests__/helpers/mountMasonryFlashList.js +49 -0
  63. package/dist/__tests__/helpers/mountMasonryFlashList.js.map +1 -0
  64. package/dist/__tests__/useBlankAreaTracker.test.d.ts +2 -0
  65. package/dist/__tests__/useBlankAreaTracker.test.d.ts.map +1 -0
  66. package/dist/__tests__/useBlankAreaTracker.test.js +177 -0
  67. package/dist/__tests__/useBlankAreaTracker.test.js.map +1 -0
  68. package/dist/benchmark/AutoScrollHelper.d.ts +18 -0
  69. package/dist/benchmark/AutoScrollHelper.d.ts.map +1 -0
  70. package/dist/benchmark/AutoScrollHelper.js +68 -0
  71. package/dist/benchmark/AutoScrollHelper.js.map +1 -0
  72. package/dist/benchmark/JSFPSMonitor.d.ts +23 -0
  73. package/dist/benchmark/JSFPSMonitor.d.ts.map +1 -0
  74. package/dist/benchmark/JSFPSMonitor.js +65 -0
  75. package/dist/benchmark/JSFPSMonitor.js.map +1 -0
  76. package/dist/benchmark/roundToDecimalPlaces.d.ts +2 -0
  77. package/dist/benchmark/roundToDecimalPlaces.d.ts.map +1 -0
  78. package/dist/benchmark/roundToDecimalPlaces.js +9 -0
  79. package/dist/benchmark/roundToDecimalPlaces.js.map +1 -0
  80. package/dist/benchmark/useBenchmark.d.ts +35 -0
  81. package/dist/benchmark/useBenchmark.d.ts.map +1 -0
  82. package/dist/benchmark/useBenchmark.js +167 -0
  83. package/dist/benchmark/useBenchmark.js.map +1 -0
  84. package/dist/benchmark/useBlankAreaTracker.d.ts +34 -0
  85. package/dist/benchmark/useBlankAreaTracker.d.ts.map +1 -0
  86. package/dist/benchmark/useBlankAreaTracker.js +67 -0
  87. package/dist/benchmark/useBlankAreaTracker.js.map +1 -0
  88. package/dist/benchmark/useDataMultiplier.d.ts +9 -0
  89. package/dist/benchmark/useDataMultiplier.d.ts.map +1 -0
  90. package/dist/benchmark/useDataMultiplier.js +25 -0
  91. package/dist/benchmark/useDataMultiplier.js.map +1 -0
  92. package/dist/benchmark/useFlatListBenchmark.d.ts +13 -0
  93. package/dist/benchmark/useFlatListBenchmark.d.ts.map +1 -0
  94. package/dist/benchmark/useFlatListBenchmark.js +100 -0
  95. package/dist/benchmark/useFlatListBenchmark.js.map +1 -0
  96. package/dist/errors/CustomError.d.ts +8 -0
  97. package/dist/errors/CustomError.d.ts.map +1 -0
  98. package/dist/errors/CustomError.js +14 -0
  99. package/dist/errors/CustomError.js.map +1 -0
  100. package/dist/errors/ExceptionList.d.ts +24 -0
  101. package/dist/errors/ExceptionList.d.ts.map +1 -0
  102. package/dist/errors/ExceptionList.js +26 -0
  103. package/dist/errors/ExceptionList.js.map +1 -0
  104. package/dist/errors/Warnings.d.ts +9 -0
  105. package/dist/errors/Warnings.d.ts.map +1 -0
  106. package/dist/errors/Warnings.js +13 -0
  107. package/dist/errors/Warnings.js.map +1 -0
  108. package/dist/fabric/AutoLayoutNativeComponent.d.ts +19 -0
  109. package/dist/fabric/AutoLayoutNativeComponent.d.ts.map +1 -0
  110. package/dist/fabric/AutoLayoutNativeComponent.js +29 -0
  111. package/dist/fabric/AutoLayoutNativeComponent.js.map +1 -0
  112. package/dist/fabric/CellContainerNativeComponent.d.ts +8 -0
  113. package/dist/fabric/CellContainerNativeComponent.d.ts.map +1 -0
  114. package/dist/fabric/CellContainerNativeComponent.js +29 -0
  115. package/dist/fabric/CellContainerNativeComponent.js.map +1 -0
  116. package/dist/index.d.ts +14 -0
  117. package/dist/index.d.ts.map +1 -0
  118. package/dist/index.js +32 -0
  119. package/dist/index.js.map +1 -0
  120. package/dist/native/auto-layout/AutoLayoutView.d.ts +22 -0
  121. package/dist/native/auto-layout/AutoLayoutView.d.ts.map +1 -0
  122. package/dist/native/auto-layout/AutoLayoutView.js +48 -0
  123. package/dist/native/auto-layout/AutoLayoutView.js.map +1 -0
  124. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts +4 -0
  125. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts.map +1 -0
  126. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js +6 -0
  127. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js.map +1 -0
  128. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts +5 -0
  129. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +1 -0
  130. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.d.ts +4 -0
  131. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.d.ts.map +1 -0
  132. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.js +29 -0
  133. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.harmony.js.map +1 -0
  134. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts +4 -0
  135. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts.map +1 -0
  136. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js +6 -0
  137. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js.map +1 -0
  138. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js +6 -0
  139. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js.map +1 -0
  140. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts +16 -0
  141. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.d.ts.map +1 -0
  142. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js +3 -0
  143. package/dist/native/auto-layout/AutoLayoutViewNativeComponentProps.js.map +1 -0
  144. package/dist/native/cell-container/CellContainer.android.d.ts +6 -0
  145. package/dist/native/cell-container/CellContainer.android.d.ts.map +1 -0
  146. package/dist/native/cell-container/CellContainer.android.js +9 -0
  147. package/dist/native/cell-container/CellContainer.android.js.map +1 -0
  148. package/dist/native/cell-container/CellContainer.d.ts +8 -0
  149. package/dist/native/cell-container/CellContainer.d.ts.map +1 -0
  150. package/dist/native/cell-container/CellContainer.harmony.d.ts +6 -0
  151. package/dist/native/cell-container/CellContainer.harmony.d.ts.map +1 -0
  152. package/dist/native/cell-container/CellContainer.harmony.js +32 -0
  153. package/dist/native/cell-container/CellContainer.harmony.js.map +1 -0
  154. package/dist/native/cell-container/CellContainer.ios.d.ts +6 -0
  155. package/dist/native/cell-container/CellContainer.ios.d.ts.map +1 -0
  156. package/dist/native/cell-container/CellContainer.ios.js +9 -0
  157. package/dist/native/cell-container/CellContainer.ios.js.map +1 -0
  158. package/dist/native/cell-container/CellContainer.js +11 -0
  159. package/dist/native/cell-container/CellContainer.js.map +1 -0
  160. package/dist/native/cell-container/CellContainer.web.d.ts +7 -0
  161. package/dist/native/cell-container/CellContainer.web.d.ts.map +1 -0
  162. package/dist/native/cell-container/CellContainer.web.js +13 -0
  163. package/dist/native/cell-container/CellContainer.web.js.map +1 -0
  164. package/dist/native/config/PlatformHelper.android.d.ts +26 -0
  165. package/dist/native/config/PlatformHelper.android.d.ts.map +1 -0
  166. package/dist/native/config/PlatformHelper.android.js +23 -0
  167. package/dist/native/config/PlatformHelper.android.js.map +1 -0
  168. package/dist/native/config/PlatformHelper.d.ts +26 -0
  169. package/dist/native/config/PlatformHelper.d.ts.map +1 -0
  170. package/dist/native/config/PlatformHelper.harmony.d.ts +26 -0
  171. package/dist/native/config/PlatformHelper.harmony.d.ts.map +1 -0
  172. package/dist/native/config/PlatformHelper.harmony.js +22 -0
  173. package/dist/native/config/PlatformHelper.harmony.js.map +1 -0
  174. package/dist/native/config/PlatformHelper.ios.d.ts +26 -0
  175. package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -0
  176. package/dist/native/config/PlatformHelper.ios.js +22 -0
  177. package/dist/native/config/PlatformHelper.ios.js.map +1 -0
  178. package/dist/native/config/PlatformHelper.js +23 -0
  179. package/dist/native/config/PlatformHelper.js.map +1 -0
  180. package/dist/native/config/PlatformHelper.web.d.ts +27 -0
  181. package/dist/native/config/PlatformHelper.web.d.ts.map +1 -0
  182. package/dist/native/config/PlatformHelper.web.js +25 -0
  183. package/dist/native/config/PlatformHelper.web.js.map +1 -0
  184. package/dist/tsconfig.tsbuildinfo +1 -0
  185. package/dist/utils/AverageWindow.d.ts +21 -0
  186. package/dist/utils/AverageWindow.d.ts.map +1 -0
  187. package/dist/utils/AverageWindow.js +49 -0
  188. package/dist/utils/AverageWindow.js.map +1 -0
  189. package/dist/utils/ContentContainerUtils.d.ts +27 -0
  190. package/dist/utils/ContentContainerUtils.d.ts.map +1 -0
  191. package/dist/utils/ContentContainerUtils.js +48 -0
  192. package/dist/utils/ContentContainerUtils.js.map +1 -0
  193. package/dist/viewability/ViewToken.d.ts +8 -0
  194. package/dist/viewability/ViewToken.d.ts.map +1 -0
  195. package/dist/viewability/ViewToken.js +3 -0
  196. package/dist/viewability/ViewToken.js.map +1 -0
  197. package/dist/viewability/ViewabilityHelper.d.ts +25 -0
  198. package/dist/viewability/ViewabilityHelper.d.ts.map +1 -0
  199. package/dist/viewability/ViewabilityHelper.js +104 -0
  200. package/dist/viewability/ViewabilityHelper.js.map +1 -0
  201. package/dist/viewability/ViewabilityManager.d.ts +24 -0
  202. package/dist/viewability/ViewabilityManager.d.ts.map +1 -0
  203. package/dist/viewability/ViewabilityManager.js +94 -0
  204. package/dist/viewability/ViewabilityManager.js.map +1 -0
  205. package/harmony/flash_list/BuildProfile.ets +5 -0
  206. package/harmony/flash_list/LICENSE +7 -0
  207. package/harmony/flash_list/build-profile.json5 +8 -0
  208. package/harmony/flash_list/hvigorfile.ts +1 -0
  209. package/harmony/flash_list/index.ets +29 -0
  210. package/harmony/flash_list/obfuscation-rules.txt +18 -0
  211. package/harmony/flash_list/oh-package-lock.json5 +17 -0
  212. package/harmony/flash_list/oh-package.json5 +13 -0
  213. package/harmony/flash_list/src/main/cpp/AutoLayoutNode.cpp +63 -0
  214. package/harmony/flash_list/src/main/cpp/AutoLayoutNode.h +57 -0
  215. package/harmony/flash_list/src/main/cpp/AutoLayoutShadow.cpp +140 -0
  216. package/harmony/flash_list/src/main/cpp/AutoLayoutShadow.h +66 -0
  217. package/harmony/flash_list/src/main/cpp/AutoLayoutViewComponentInstance.cpp +208 -0
  218. package/harmony/flash_list/src/main/cpp/AutoLayoutViewComponentInstance.h +78 -0
  219. package/harmony/flash_list/src/main/cpp/AutoLayoutViewEventEmitRequestHandler.h +53 -0
  220. package/harmony/flash_list/src/main/cpp/AutoLayoutViewJSIBinder.h +50 -0
  221. package/harmony/flash_list/src/main/cpp/CMakeLists.txt +7 -0
  222. package/harmony/flash_list/src/main/cpp/CellContainerComponentInstance.cpp +80 -0
  223. package/harmony/flash_list/src/main/cpp/CellContainerComponentInstance.h +67 -0
  224. package/harmony/flash_list/src/main/cpp/CellContainerJSIBinder.h +39 -0
  225. package/harmony/flash_list/src/main/cpp/ComponentDescriptors.h +40 -0
  226. package/harmony/flash_list/src/main/cpp/EventEmitters.cpp +40 -0
  227. package/harmony/flash_list/src/main/cpp/EventEmitters.h +48 -0
  228. package/harmony/flash_list/src/main/cpp/FlashListPackage.h +78 -0
  229. package/harmony/flash_list/src/main/cpp/FlashListStackNode.cpp +89 -0
  230. package/harmony/flash_list/src/main/cpp/FlashListStackNode.h +59 -0
  231. package/harmony/flash_list/src/main/cpp/Props.cpp +52 -0
  232. package/harmony/flash_list/src/main/cpp/Props.h +64 -0
  233. package/harmony/flash_list/src/main/cpp/ShadowNodes.cpp +34 -0
  234. package/harmony/flash_list/src/main/cpp/ShadowNodes.h +48 -0
  235. package/harmony/flash_list/src/main/ets/Logger.ets +64 -0
  236. package/harmony/flash_list/src/main/ets/RNAutoLayoutShadow.ets +154 -0
  237. package/harmony/flash_list/src/main/ets/RNAutoLayoutView.ets +252 -0
  238. package/harmony/flash_list/src/main/ets/RNCellContainer.ets +113 -0
  239. package/harmony/flash_list/src/main/module.json5 +7 -0
  240. package/harmony/flash_list/src/main/resources/base/element/color.json +8 -0
  241. package/harmony/flash_list/src/main/resources/base/element/string.json +16 -0
  242. package/harmony/flash_list/src/main/resources/base/media/icon.png +0 -0
  243. package/harmony/flash_list/src/main/resources/base/profile/main_pages.json +5 -0
  244. package/harmony/flash_list/src/main/resources/en_US/element/string.json +16 -0
  245. package/harmony/flash_list/src/main/resources/zh_CN/element/string.json +16 -0
  246. package/harmony/flash_list.har +0 -0
  247. package/jestSetup.js +16 -0
  248. package/package.json +88 -0
  249. package/src/AnimatedFlashList.ts +11 -0
  250. package/src/FlashList.tsx +870 -0
  251. package/src/FlashListProps.ts +335 -0
  252. package/src/GridLayoutProviderWithProps.ts +180 -0
  253. package/src/MasonryFlashList.tsx +476 -0
  254. package/src/PureComponentWrapper.tsx +42 -0
  255. package/src/__tests__/AverageWindow.test.ts +80 -0
  256. package/src/__tests__/ContentContainerUtils.test.ts +130 -0
  257. package/src/__tests__/FlashList.test.tsx +886 -0
  258. package/src/__tests__/GridLayoutProviderWithProps.test.ts +179 -0
  259. package/src/__tests__/MasonryFlashList.test.ts +292 -0
  260. package/src/__tests__/PlatformHelper.web.test.ts +45 -0
  261. package/src/__tests__/ViewabilityHelper.test.ts +283 -0
  262. package/src/__tests__/helpers/mountFlashList.tsx +62 -0
  263. package/src/__tests__/helpers/mountMasonryFlashList.tsx +70 -0
  264. package/src/__tests__/useBlankAreaTracker.test.tsx +204 -0
  265. package/src/benchmark/AutoScrollHelper.ts +70 -0
  266. package/src/benchmark/JSFPSMonitor.ts +74 -0
  267. package/src/benchmark/roundToDecimalPlaces.ts +4 -0
  268. package/src/benchmark/useBenchmark.ts +240 -0
  269. package/src/benchmark/useBlankAreaTracker.ts +117 -0
  270. package/src/benchmark/useDataMultiplier.ts +19 -0
  271. package/src/benchmark/useFlatListBenchmark.ts +107 -0
  272. package/src/errors/CustomError.ts +10 -0
  273. package/src/errors/ExceptionList.ts +28 -0
  274. package/src/errors/Warnings.ts +15 -0
  275. package/src/fabric/AutoLayoutNativeComponent.ts +51 -0
  276. package/src/fabric/CellContainerNativeComponent.ts +34 -0
  277. package/src/index.ts +43 -0
  278. package/src/native/auto-layout/AutoLayoutView.tsx +73 -0
  279. package/src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts +7 -0
  280. package/src/native/auto-layout/AutoLayoutViewNativeComponent.harmony.ts +30 -0
  281. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts +7 -0
  282. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ts +7 -0
  283. package/src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts +17 -0
  284. package/src/native/cell-container/CellContainer.android.ts +7 -0
  285. package/src/native/cell-container/CellContainer.harmony.ts +30 -0
  286. package/src/native/cell-container/CellContainer.ios.ts +6 -0
  287. package/src/native/cell-container/CellContainer.tsx +14 -0
  288. package/src/native/cell-container/CellContainer.web.tsx +9 -0
  289. package/src/native/config/PlatformHelper.android.ts +29 -0
  290. package/src/native/config/PlatformHelper.harmony.ts +51 -0
  291. package/src/native/config/PlatformHelper.ios.ts +28 -0
  292. package/src/native/config/PlatformHelper.ts +29 -0
  293. package/src/native/config/PlatformHelper.web.ts +34 -0
  294. package/src/utils/AverageWindow.ts +49 -0
  295. package/src/utils/ContentContainerUtils.ts +92 -0
  296. package/src/viewability/ViewToken.ts +7 -0
  297. package/src/viewability/ViewabilityHelper.ts +162 -0
  298. package/src/viewability/ViewabilityManager.ts +134 -0
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useFlatListBenchmark = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = require("react");
6
+ var AutoScrollHelper_1 = require("./AutoScrollHelper");
7
+ var JSFPSMonitor_1 = require("./JSFPSMonitor");
8
+ var useBenchmark_1 = require("./useBenchmark");
9
+ /**
10
+ * Runs the benchmark on FlatList and calls the callback method with the result.
11
+ * Target offset is mandatory in params.
12
+ * It's recommended to remove pagination while running the benchmark. Removing the onEndReached callback is the easiest way to do that.
13
+ */
14
+ function useFlatListBenchmark(flatListRef, callback, params) {
15
+ var _this = this;
16
+ (0, react_1.useEffect)(function () {
17
+ var _a;
18
+ var cancellable = new AutoScrollHelper_1.Cancellable();
19
+ if (flatListRef.current) {
20
+ if (!(Number((_a = flatListRef.current.props.data) === null || _a === void 0 ? void 0 : _a.length) > 0)) {
21
+ throw new Error("Data is empty, cannot run benchmark");
22
+ }
23
+ }
24
+ var cancelTimeout = setTimeout(function () { return tslib_1.__awaiter(_this, void 0, void 0, function () {
25
+ var jsFPSMonitor, i, jsProfilerResponse, result;
26
+ return tslib_1.__generator(this, function (_a) {
27
+ switch (_a.label) {
28
+ case 0:
29
+ jsFPSMonitor = new JSFPSMonitor_1.JSFPSMonitor();
30
+ jsFPSMonitor.startTracking();
31
+ i = 0;
32
+ _a.label = 1;
33
+ case 1:
34
+ if (!(i < (params.repeatCount || 1))) return [3 /*break*/, 4];
35
+ return [4 /*yield*/, runScrollBenchmark(flatListRef, params.targetOffset, cancellable, params.speedMultiplier || 1)];
36
+ case 2:
37
+ _a.sent();
38
+ _a.label = 3;
39
+ case 3:
40
+ i++;
41
+ return [3 /*break*/, 1];
42
+ case 4:
43
+ jsProfilerResponse = jsFPSMonitor.stopAndGetData();
44
+ result = {
45
+ js: jsProfilerResponse,
46
+ suggestions: [],
47
+ interrupted: cancellable.isCancelled(),
48
+ };
49
+ if (!cancellable.isCancelled()) {
50
+ result.formattedString = (0, useBenchmark_1.getFormattedString)(result);
51
+ }
52
+ callback(result);
53
+ return [2 /*return*/];
54
+ }
55
+ });
56
+ }); }, params.startDelayInMs || 3000);
57
+ return function () {
58
+ clearTimeout(cancelTimeout);
59
+ cancellable.cancel();
60
+ };
61
+ // eslint-disable-next-line react-hooks/exhaustive-deps
62
+ }, []);
63
+ return [];
64
+ }
65
+ exports.useFlatListBenchmark = useFlatListBenchmark;
66
+ /**
67
+ * Scrolls to the target offset and then back to 0
68
+ */
69
+ function runScrollBenchmark(flatListRef, targetOffset, cancellable, scrollSpeedMultiplier) {
70
+ return tslib_1.__awaiter(this, void 0, void 0, function () {
71
+ var horizontal_1, fromX, fromY, toX, toY, scrollNow;
72
+ return tslib_1.__generator(this, function (_a) {
73
+ switch (_a.label) {
74
+ case 0:
75
+ if (!flatListRef.current) return [3 /*break*/, 3];
76
+ horizontal_1 = flatListRef.current.props.horizontal;
77
+ fromX = 0;
78
+ fromY = 0;
79
+ toX = horizontal_1 ? targetOffset : 0;
80
+ toY = horizontal_1 ? 0 : targetOffset;
81
+ scrollNow = function (x, y) {
82
+ var _a;
83
+ (_a = flatListRef.current) === null || _a === void 0 ? void 0 : _a.scrollToOffset({
84
+ offset: horizontal_1 ? x : y,
85
+ animated: false,
86
+ });
87
+ };
88
+ return [4 /*yield*/, (0, AutoScrollHelper_1.autoScroll)(scrollNow, fromX, fromY, toX, toY, scrollSpeedMultiplier, cancellable)];
89
+ case 1:
90
+ _a.sent();
91
+ return [4 /*yield*/, (0, AutoScrollHelper_1.autoScroll)(scrollNow, toX, toY, fromX, fromY, scrollSpeedMultiplier, cancellable)];
92
+ case 2:
93
+ _a.sent();
94
+ _a.label = 3;
95
+ case 3: return [2 /*return*/];
96
+ }
97
+ });
98
+ });
99
+ }
100
+ //# sourceMappingURL=useFlatListBenchmark.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFlatListBenchmark.js","sourceRoot":"","sources":["../../src/benchmark/useFlatListBenchmark.ts"],"names":[],"mappings":";;;;AAAA,+BAAkC;AAGlC,uDAA6D;AAC7D,+CAA8C;AAC9C,+CAIwB;AAMxB;;;;GAIG;AACH,SAAgB,oBAAoB,CAClC,WAA2C,EAC3C,QAAoD,EACpD,MAA+B;IAHjC,iBAyCC;IApCC,IAAA,iBAAS,EAAC;;QACR,IAAM,WAAW,GAAG,IAAI,8BAAW,EAAE,CAAC;QACtC,IAAI,WAAW,CAAC,OAAO,EAAE;YACvB,IAAI,CAAC,CAAC,MAAM,CAAC,MAAA,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,0CAAE,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;gBACzD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;aACxD;SACF;QACD,IAAM,aAAa,GAAG,UAAU,CAAC;;;;;wBACzB,YAAY,GAAG,IAAI,2BAAY,EAAE,CAAC;wBACxC,YAAY,CAAC,aAAa,EAAE,CAAC;wBACpB,CAAC,GAAG,CAAC;;;6BAAE,CAAA,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,CAAC,CAAA;wBAC3C,qBAAM,kBAAkB,CACtB,WAAW,EACX,MAAM,CAAC,YAAY,EACnB,WAAW,EACX,MAAM,CAAC,eAAe,IAAI,CAAC,CAC5B,EAAA;;wBALD,SAKC,CAAC;;;wBAN2C,CAAC,EAAE,CAAA;;;wBAQ5C,kBAAkB,GAAG,YAAY,CAAC,cAAc,EAAE,CAAC;wBACnD,MAAM,GAAoB;4BAC9B,EAAE,EAAE,kBAAkB;4BACtB,WAAW,EAAE,EAAE;4BACf,WAAW,EAAE,WAAW,CAAC,WAAW,EAAE;yBACvC,CAAC;wBACF,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,EAAE;4BAC9B,MAAM,CAAC,eAAe,GAAG,IAAA,iCAAkB,EAAC,MAAM,CAAC,CAAC;yBACrD;wBACD,QAAQ,CAAC,MAAM,CAAC,CAAC;;;;aAClB,EAAE,MAAM,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC;QAClC,OAAO;YACL,YAAY,CAAC,aAAa,CAAC,CAAC;YAC5B,WAAW,CAAC,MAAM,EAAE,CAAC;QACvB,CAAC,CAAC;QACF,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IACP,OAAO,EAAE,CAAC;AACZ,CAAC;AAzCD,oDAyCC;AAED;;GAEG;AACH,SAAe,kBAAkB,CAC/B,WAA8D,EAC9D,YAAoB,EACpB,WAAwB,EACxB,qBAA6B;;;;;;yBAEzB,WAAW,CAAC,OAAO,EAAnB,wBAAmB;oBACf,eAAa,WAAW,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;oBAElD,KAAK,GAAG,CAAC,CAAC;oBACV,KAAK,GAAG,CAAC,CAAC;oBACV,GAAG,GAAG,YAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;oBACpC,GAAG,GAAG,YAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC;oBAEpC,SAAS,GAAG,UAAC,CAAS,EAAE,CAAS;;wBACrC,MAAA,WAAW,CAAC,OAAO,0CAAE,cAAc,CAAC;4BAClC,MAAM,EAAE,YAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;4BAC1B,QAAQ,EAAE,KAAK;yBAChB,CAAC,CAAC;oBACL,CAAC,CAAC;oBAEF,qBAAM,IAAA,6BAAU,EACd,SAAS,EACT,KAAK,EACL,KAAK,EACL,GAAG,EACH,GAAG,EACH,qBAAqB,EACrB,WAAW,CACZ,EAAA;;oBARD,SAQC,CAAC;oBACF,qBAAM,IAAA,6BAAU,EACd,SAAS,EACT,GAAG,EACH,GAAG,EACH,KAAK,EACL,KAAK,EACL,qBAAqB,EACrB,WAAW,CACZ,EAAA;;oBARD,SAQC,CAAC;;;;;;CAEL"}
@@ -0,0 +1,8 @@
1
+ export default class CustomError extends Error {
2
+ constructor(exception: Exception);
3
+ }
4
+ export interface Exception {
5
+ type: string;
6
+ message: string;
7
+ }
8
+ //# sourceMappingURL=CustomError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomError.d.ts","sourceRoot":"","sources":["../../src/errors/CustomError.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK;gBAChC,SAAS,EAAE,SAAS;CAIjC;AACD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var CustomError = /** @class */ (function (_super) {
5
+ tslib_1.__extends(CustomError, _super);
6
+ function CustomError(exception) {
7
+ var _this = _super.call(this, "".concat(exception.type, ": ").concat(exception.message)) || this;
8
+ _this.name = exception.type;
9
+ return _this;
10
+ }
11
+ return CustomError;
12
+ }(Error));
13
+ exports.default = CustomError;
14
+ //# sourceMappingURL=CustomError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomError.js","sourceRoot":"","sources":["../../src/errors/CustomError.ts"],"names":[],"mappings":";;;AAAA;IAAyC,uCAAK;IAC5C,qBAAY,SAAoB;QAAhC,YACE,kBAAM,UAAG,SAAS,CAAC,IAAI,eAAK,SAAS,CAAC,OAAO,CAAE,CAAC,SAEjD;QADC,KAAI,CAAC,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;;IAC7B,CAAC;IACH,kBAAC;AAAD,CAAC,AALD,CAAyC,KAAK,GAK7C"}
@@ -0,0 +1,24 @@
1
+ declare const ExceptionList: {
2
+ refreshBooleanMissing: {
3
+ message: string;
4
+ type: string;
5
+ };
6
+ stickyWhileHorizontalNotSupported: {
7
+ message: string;
8
+ type: string;
9
+ };
10
+ columnsWhileHorizontalNotSupported: {
11
+ message: string;
12
+ type: string;
13
+ };
14
+ multipleViewabilityThresholdTypesNotSupported: {
15
+ message: string;
16
+ type: string;
17
+ };
18
+ overrideItemLayoutRequiredForMasonryOptimization: {
19
+ message: string;
20
+ type: string;
21
+ };
22
+ };
23
+ export default ExceptionList;
24
+ //# sourceMappingURL=ExceptionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExceptionList.d.ts","sourceRoot":"","sources":["../../src/errors/ExceptionList.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;CA0BlB,CAAC;AACF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var ExceptionList = {
4
+ refreshBooleanMissing: {
5
+ message: "`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `undefined`.",
6
+ type: "InvariantViolation",
7
+ },
8
+ stickyWhileHorizontalNotSupported: {
9
+ message: "sticky headers are not supported when list is in horizontal mode. Remove `stickyHeaderIndices` prop.",
10
+ type: "NotSupportedException",
11
+ },
12
+ columnsWhileHorizontalNotSupported: {
13
+ message: "numColumns is not supported when list is in horizontal mode. Please remove or set numColumns to 1.",
14
+ type: "NotSupportedException",
15
+ },
16
+ multipleViewabilityThresholdTypesNotSupported: {
17
+ message: "You can set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold. Specifying both is not supported.",
18
+ type: "MultipleViewabilityThresholdTypesException",
19
+ },
20
+ overrideItemLayoutRequiredForMasonryOptimization: {
21
+ message: "optimizeItemArrangement has been enabled on `MasonryFlashList` but overrideItemLayout is not set.",
22
+ type: "InvariantViolation",
23
+ },
24
+ };
25
+ exports.default = ExceptionList;
26
+ //# sourceMappingURL=ExceptionList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExceptionList.js","sourceRoot":"","sources":["../../src/errors/ExceptionList.ts"],"names":[],"mappings":";;AAAA,IAAM,aAAa,GAAG;IACpB,qBAAqB,EAAE;QACrB,OAAO,EACL,8FAA8F;QAChG,IAAI,EAAE,oBAAoB;KAC3B;IACD,iCAAiC,EAAE;QACjC,OAAO,EACL,sGAAsG;QACxG,IAAI,EAAE,uBAAuB;KAC9B;IACD,kCAAkC,EAAE;QAClC,OAAO,EACL,oGAAoG;QACtG,IAAI,EAAE,uBAAuB;KAC9B;IACD,6CAA6C,EAAE;QAC7C,OAAO,EACL,+HAA+H;QACjI,IAAI,EAAE,4CAA4C;KACnD;IACD,gDAAgD,EAAE;QAChD,OAAO,EACL,mGAAmG;QACrG,IAAI,EAAE,oBAAoB;KAC3B;CACF,CAAC;AACF,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ declare const WarningList: {
2
+ styleUnsupported: string;
3
+ styleContentContainerUnsupported: string;
4
+ unusableRenderedSize: string;
5
+ missingKeyExtractor: string;
6
+ estimatedItemSizeMissingWarning: string;
7
+ };
8
+ export default WarningList;
9
+ //# sourceMappingURL=Warnings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Warnings.d.ts","sourceRoot":"","sources":["../../src/errors/Warnings.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;;;CAahB,CAAC;AACF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var WarningList = {
4
+ styleUnsupported: "You have passed a style to FlashList. This list doesn't support styling, use contentContainerStyle or wrap the list in a parent and apply style to it instead.",
5
+ styleContentContainerUnsupported: "FlashList only supports padding related props and backgroundColor in contentContainerStyle. Please remove other values as they're not used.",
6
+ unusableRenderedSize: "FlashList's rendered size is not usable. Either the height or width is too small (<2px). " +
7
+ "Please make sure that the parent view of the list has a valid size. FlashList will match the size of the parent.",
8
+ missingKeyExtractor: "FlashList requires a keyExtractor prop to be defined when animating elements. Without it, the animations will not run as expected.",
9
+ estimatedItemSizeMissingWarning: "estimatedItemSize FlashList prop is not defined - based on current configuration you can set it to @size to optimize list performance. " +
10
+ "Refer to FlashList documentation for more details.",
11
+ };
12
+ exports.default = WarningList;
13
+ //# sourceMappingURL=Warnings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Warnings.js","sourceRoot":"","sources":["../../src/errors/Warnings.ts"],"names":[],"mappings":";;AAAA,IAAM,WAAW,GAAG;IAClB,gBAAgB,EACd,gKAAgK;IAClK,gCAAgC,EAC9B,6IAA6I;IAC/I,oBAAoB,EAClB,2FAA2F;QAC3F,kHAAkH;IACpH,mBAAmB,EACjB,oIAAoI;IACtI,+BAA+B,EAC7B,yIAAyI;QACzI,oDAAoD;CACvD,CAAC;AACF,kBAAe,WAAW,CAAC"}
@@ -0,0 +1,19 @@
1
+ import type { ViewProps, HostComponent } from "react-native";
2
+ import type { Int32, Double, DirectEventHandler } from "react-native/Libraries/Types/CodegenTypes";
3
+ export declare type BlankAreaEvent = Readonly<{
4
+ offsetStart: Int32;
5
+ offsetEnd: Int32;
6
+ }>;
7
+ export declare type onBlankAreaEvent = DirectEventHandler<BlankAreaEvent>;
8
+ interface NativeProps extends ViewProps {
9
+ horizontal?: boolean;
10
+ scrollOffset?: Double;
11
+ windowSize?: Double;
12
+ renderAheadOffset?: Double;
13
+ enableInstrumentation?: boolean;
14
+ disableAutoLayout?: boolean;
15
+ onBlankAreaEvent?: DirectEventHandler<BlankAreaEvent>;
16
+ }
17
+ declare const _default: HostComponent<NativeProps>;
18
+ export default _default;
19
+ //# sourceMappingURL=AutoLayoutNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutNativeComponent.d.ts","sourceRoot":"","sources":["../../src/fabric/AutoLayoutNativeComponent.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,KAAK,EACV,KAAK,EACL,MAAM,EACN,kBAAkB,EACnB,MAAM,2CAA2C,CAAC;AAEnD,oBAAY,cAAc,GAAG,QAAQ,CAAC;IACpC,WAAW,EAAE,KAAK,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC;CAClB,CAAC,CAAC;AAEH,oBAAY,gBAAgB,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;AAElE,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,CAAC,EAAE,kBAAkB,CAAC,cAAc,CAAC,CAAC;CACvD;;AAED,wBAEgC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ /*
5
+ * MIT License
6
+ *
7
+ * Copyright (C) 2023 Huawei Device Co., Ltd.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
28
+ exports.default = (0, codegenNativeComponent_1.default)("AutoLayoutView");
29
+ //# sourceMappingURL=AutoLayoutNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutNativeComponent.js","sourceRoot":"","sources":["../../src/fabric/AutoLayoutNativeComponent.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2HAA6F;AAyB7F,kBAAe,IAAA,gCAAsB,EACnC,gBAAgB,CACa,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Int32 } from "react-native/Libraries/Types/CodegenTypes";
2
+ import type { ViewProps, HostComponent } from "react-native";
3
+ interface NativeProps extends ViewProps {
4
+ index?: Int32;
5
+ }
6
+ declare const _default: HostComponent<NativeProps>;
7
+ export default _default;
8
+ //# sourceMappingURL=CellContainerNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainerNativeComponent.d.ts","sourceRoot":"","sources":["../../src/fabric/CellContainerNativeComponent.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7D,UAAU,WAAY,SAAQ,SAAS;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;;AAED,wBAEgC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ /*
5
+ * MIT License
6
+ *
7
+ * Copyright (C) 2023 Huawei Device Co., Ltd.
8
+ *
9
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ * of this software and associated documentation files (the "Software"), to deal
11
+ * in the Software without restriction, including without limitation the rights
12
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ * copies of the Software, and to permit persons to whom the Software is
14
+ * furnished to do so, subject to the following conditions:
15
+ *
16
+ * The above copyright notice and this permission notice shall be included in all
17
+ * copies or substantial portions of the Software.
18
+ *
19
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25
+ * SOFTWARE.
26
+ */
27
+ var codegenNativeComponent_1 = tslib_1.__importDefault(require("react-native/Libraries/Utilities/codegenNativeComponent"));
28
+ exports.default = (0, codegenNativeComponent_1.default)("CellContainer");
29
+ //# sourceMappingURL=CellContainerNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainerNativeComponent.js","sourceRoot":"","sources":["../../src/fabric/CellContainerNativeComponent.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,2HAA6F;AAQ7F,kBAAe,IAAA,gCAAsB,EACnC,eAAe,CACc,CAAC"}
@@ -0,0 +1,14 @@
1
+ export { default as FlashList } from "./FlashList";
2
+ export { FlashListProps, ContentStyle, ListRenderItem, ListRenderItemInfo, RenderTarget, RenderTargetOptions, } from "./FlashListProps";
3
+ export { default as AnimatedFlashList } from "./AnimatedFlashList";
4
+ export { useOnNativeBlankAreaEvents, BlankAreaEventHandler, BlankAreaEvent, } from "./native/auto-layout/AutoLayoutView";
5
+ export { useBenchmark, BenchmarkParams, BenchmarkResult, } from "./benchmark/useBenchmark";
6
+ export { useDataMultiplier } from "./benchmark/useDataMultiplier";
7
+ export { useFlatListBenchmark, FlatListBenchmarkParams, } from "./benchmark/useFlatListBenchmark";
8
+ export { useBlankAreaTracker, BlankAreaTrackerResult, BlankAreaTrackerConfig, } from "./benchmark/useBlankAreaTracker";
9
+ export { MasonryFlashList, MasonryFlashListProps, MasonryFlashListScrollEvent, MasonryFlashListRef, MasonryListItem, MasonryListRenderItem, MasonryListRenderItemInfo, } from "./MasonryFlashList";
10
+ export { JSFPSMonitor, JSFPSResult } from "./benchmark/JSFPSMonitor";
11
+ export { autoScroll, Cancellable } from "./benchmark/AutoScrollHelper";
12
+ export { default as ViewToken } from "./viewability/ViewToken";
13
+ export { default as CellContainer } from "./native/cell-container/CellContainer";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EACL,cAAc,EACd,YAAY,EACZ,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,mBAAmB,GACpB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EACL,0BAA0B,EAC1B,qBAAqB,EACrB,cAAc,GACf,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,YAAY,EACZ,eAAe,EACf,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EACL,oBAAoB,EACpB,uBAAuB,GACxB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EACrB,2BAA2B,EAC3B,mBAAmB,EACnB,eAAe,EACf,qBAAqB,EACrB,yBAAyB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,uCAAuC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CellContainer = exports.Cancellable = exports.autoScroll = exports.JSFPSMonitor = exports.MasonryFlashList = exports.useBlankAreaTracker = exports.useFlatListBenchmark = exports.useDataMultiplier = exports.useBenchmark = exports.useOnNativeBlankAreaEvents = exports.AnimatedFlashList = exports.RenderTargetOptions = exports.FlashList = void 0;
7
+ var FlashList_1 = require("./FlashList");
8
+ Object.defineProperty(exports, "FlashList", { enumerable: true, get: function () { return __importDefault(FlashList_1).default; } });
9
+ var FlashListProps_1 = require("./FlashListProps");
10
+ Object.defineProperty(exports, "RenderTargetOptions", { enumerable: true, get: function () { return FlashListProps_1.RenderTargetOptions; } });
11
+ var AnimatedFlashList_1 = require("./AnimatedFlashList");
12
+ Object.defineProperty(exports, "AnimatedFlashList", { enumerable: true, get: function () { return __importDefault(AnimatedFlashList_1).default; } });
13
+ var AutoLayoutView_1 = require("./native/auto-layout/AutoLayoutView");
14
+ Object.defineProperty(exports, "useOnNativeBlankAreaEvents", { enumerable: true, get: function () { return AutoLayoutView_1.useOnNativeBlankAreaEvents; } });
15
+ var useBenchmark_1 = require("./benchmark/useBenchmark");
16
+ Object.defineProperty(exports, "useBenchmark", { enumerable: true, get: function () { return useBenchmark_1.useBenchmark; } });
17
+ var useDataMultiplier_1 = require("./benchmark/useDataMultiplier");
18
+ Object.defineProperty(exports, "useDataMultiplier", { enumerable: true, get: function () { return useDataMultiplier_1.useDataMultiplier; } });
19
+ var useFlatListBenchmark_1 = require("./benchmark/useFlatListBenchmark");
20
+ Object.defineProperty(exports, "useFlatListBenchmark", { enumerable: true, get: function () { return useFlatListBenchmark_1.useFlatListBenchmark; } });
21
+ var useBlankAreaTracker_1 = require("./benchmark/useBlankAreaTracker");
22
+ Object.defineProperty(exports, "useBlankAreaTracker", { enumerable: true, get: function () { return useBlankAreaTracker_1.useBlankAreaTracker; } });
23
+ var MasonryFlashList_1 = require("./MasonryFlashList");
24
+ Object.defineProperty(exports, "MasonryFlashList", { enumerable: true, get: function () { return MasonryFlashList_1.MasonryFlashList; } });
25
+ var JSFPSMonitor_1 = require("./benchmark/JSFPSMonitor");
26
+ Object.defineProperty(exports, "JSFPSMonitor", { enumerable: true, get: function () { return JSFPSMonitor_1.JSFPSMonitor; } });
27
+ var AutoScrollHelper_1 = require("./benchmark/AutoScrollHelper");
28
+ Object.defineProperty(exports, "autoScroll", { enumerable: true, get: function () { return AutoScrollHelper_1.autoScroll; } });
29
+ Object.defineProperty(exports, "Cancellable", { enumerable: true, get: function () { return AutoScrollHelper_1.Cancellable; } });
30
+ var CellContainer_1 = require("./native/cell-container/CellContainer");
31
+ Object.defineProperty(exports, "CellContainer", { enumerable: true, get: function () { return __importDefault(CellContainer_1).default; } });
32
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,yCAAmD;AAA1C,uHAAA,OAAO,OAAa;AAC7B,mDAO0B;AADxB,qHAAA,mBAAmB,OAAA;AAErB,yDAAmE;AAA1D,uIAAA,OAAO,OAAqB;AACrC,sEAI6C;AAH3C,4HAAA,0BAA0B,OAAA;AAI5B,yDAIkC;AAHhC,4GAAA,YAAY,OAAA;AAId,mEAAkE;AAAzD,sHAAA,iBAAiB,OAAA;AAC1B,yEAG0C;AAFxC,4HAAA,oBAAoB,OAAA;AAGtB,uEAIyC;AAHvC,0HAAA,mBAAmB,OAAA;AAIrB,uDAQ4B;AAP1B,oHAAA,gBAAgB,OAAA;AAQlB,yDAAqE;AAA5D,4GAAA,YAAY,OAAA;AACrB,iEAAuE;AAA9D,8GAAA,UAAU,OAAA;AAAE,+GAAA,WAAW,OAAA;AAEhC,uEAAiF;AAAxE,+HAAA,OAAO,OAAiB"}
@@ -0,0 +1,22 @@
1
+ import React, { ReactNode } from "react";
2
+ import { LayoutChangeEvent } from "react-native";
3
+ export declare type BlankAreaEventHandler = (blankAreaEvent: BlankAreaEvent) => void;
4
+ export declare const useOnNativeBlankAreaEvents: (onBlankAreaEvent: (blankAreaEvent: BlankAreaEvent) => void) => void;
5
+ export interface BlankAreaEvent {
6
+ offsetStart: number;
7
+ offsetEnd: number;
8
+ blankArea: number;
9
+ }
10
+ export interface AutoLayoutViewProps {
11
+ children?: ReactNode;
12
+ onBlankAreaEvent?: BlankAreaEventHandler;
13
+ onLayout?: (event: LayoutChangeEvent) => void;
14
+ disableAutoLayout?: boolean;
15
+ }
16
+ declare class AutoLayoutView extends React.Component<AutoLayoutViewProps> {
17
+ private onBlankAreaEventCallback;
18
+ private broadcastBlankEvent;
19
+ render(): React.JSX.Element;
20
+ }
21
+ export default AutoLayoutView;
22
+ //# sourceMappingURL=AutoLayoutView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutView.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,SAAS,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAKjD,oBAAY,qBAAqB,GAAG,CAAC,cAAc,EAAE,cAAc,KAAK,IAAI,CAAC;AAG7E,eAAO,MAAM,0BAA0B,sCACF,cAAc,KAAK,IAAI,SAQ3D,CAAC;AAEF,MAAM,WAAW,cAAc;IAC7B,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,CAAC,EAAE,qBAAqB,CAAC;IACzC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,cAAM,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;IAC/D,OAAO,CAAC,wBAAwB,CAa9B;IAEF,OAAO,CAAC,mBAAmB;IAO3B,MAAM;CAcP;AAED,eAAe,cAAc,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useOnNativeBlankAreaEvents = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var react_1 = tslib_1.__importStar(require("react"));
6
+ var AutoLayoutViewNativeComponent_1 = tslib_1.__importDefault(require("./AutoLayoutViewNativeComponent"));
7
+ var listeners = [];
8
+ var useOnNativeBlankAreaEvents = function (onBlankAreaEvent) {
9
+ (0, react_1.useEffect)(function () {
10
+ listeners.push(onBlankAreaEvent);
11
+ return function () {
12
+ listeners.filter(function (callback) { return callback !== onBlankAreaEvent; });
13
+ };
14
+ }, [onBlankAreaEvent]);
15
+ };
16
+ exports.useOnNativeBlankAreaEvents = useOnNativeBlankAreaEvents;
17
+ var AutoLayoutView = /** @class */ (function (_super) {
18
+ tslib_1.__extends(AutoLayoutView, _super);
19
+ function AutoLayoutView() {
20
+ var _this = _super !== null && _super.apply(this, arguments) || this;
21
+ _this.onBlankAreaEventCallback = function (_a) {
22
+ var nativeEvent = _a.nativeEvent;
23
+ var blankArea = Math.max(nativeEvent.offsetStart, nativeEvent.offsetEnd);
24
+ var blankEventValue = {
25
+ blankArea: blankArea,
26
+ offsetStart: nativeEvent.offsetStart,
27
+ offsetEnd: nativeEvent.offsetEnd,
28
+ };
29
+ _this.broadcastBlankEvent(blankEventValue);
30
+ if (_this.props.onBlankAreaEvent) {
31
+ _this.props.onBlankAreaEvent(blankEventValue);
32
+ }
33
+ };
34
+ return _this;
35
+ }
36
+ AutoLayoutView.prototype.broadcastBlankEvent = function (value) {
37
+ var len = listeners.length;
38
+ for (var i = 0; i < len; i++) {
39
+ listeners[i](value);
40
+ }
41
+ };
42
+ AutoLayoutView.prototype.render = function () {
43
+ return (react_1.default.createElement(AutoLayoutViewNativeComponent_1.default, tslib_1.__assign({}, this.props, { onBlankAreaEvent: this.onBlankAreaEventCallback, enableInstrumentation: listeners.length !== 0 || Boolean(this.props.onBlankAreaEvent), disableAutoLayout: this.props.disableAutoLayout }), this.props.children));
44
+ };
45
+ return AutoLayoutView;
46
+ }(react_1.default.Component));
47
+ exports.default = AutoLayoutView;
48
+ //# sourceMappingURL=AutoLayoutView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutView.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutView.tsx"],"names":[],"mappings":";;;;AAAA,qDAAoD;AAGpD,0GAA4E;AAI5E,IAAM,SAAS,GAA4B,EAAE,CAAC;AAEvC,IAAM,0BAA0B,GAAG,UACxC,gBAA0D;IAE1D,IAAA,iBAAS,EAAC;QACR,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACjC,OAAO;YACL,SAAS,CAAC,MAAM,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,KAAK,gBAAgB,EAA7B,CAA6B,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAC;AACzB,CAAC,CAAC;AATW,QAAA,0BAA0B,8BASrC;AAeF;IAA6B,0CAAoC;IAAjE;QAAA,qEAqCC;QApCS,8BAAwB,GAAG,UAAC,EAEjB;gBADjB,WAAW,iBAAA;YAEX,IAAM,SAAS,GAAG,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,WAAW,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;YAC3E,IAAM,eAAe,GAAG;gBACtB,SAAS,WAAA;gBACT,WAAW,EAAE,WAAW,CAAC,WAAW;gBACpC,SAAS,EAAE,WAAW,CAAC,SAAS;aACjC,CAAC;YACF,KAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,CAAC;YAC1C,IAAI,KAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE;gBAC/B,KAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,eAAe,CAAC,CAAC;aAC9C;QACH,CAAC,CAAC;;IAuBJ,CAAC;IArBS,4CAAmB,GAA3B,UAA4B,KAAqB;QAC/C,IAAM,GAAG,GAAG,SAAS,CAAC,MAAM,CAAC;QAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;YAC5B,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SACrB;IACH,CAAC;IAED,+BAAM,GAAN;QACE,OAAO,CACL,8BAAC,uCAA6B,uBACxB,IAAI,CAAC,KAAK,IACd,gBAAgB,EAAE,IAAI,CAAC,wBAAwB,EAC/C,qBAAqB,EACnB,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAEhE,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,iBAAiB,KAE9C,IAAI,CAAC,KAAK,CAAC,QAAQ,CACU,CACjC,CAAC;IACJ,CAAC;IACH,qBAAC;AAAD,CAAC,AArCD,CAA6B,eAAK,CAAC,SAAS,GAqC3C;AAED,kBAAe,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
+ declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
+ export default AutoLayoutViewNativeComponent;
4
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.android.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_native_1 = require("react-native");
4
+ var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
5
+ exports.default = AutoLayoutViewNativeComponent;
6
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.android.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.android.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { HostComponent } from "react-native";
2
+ import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
3
+ declare const AutoLayoutViewNativeComponent: HostComponent<AutoLayoutViewNativeComponentProps>;
4
+ export default AutoLayoutViewNativeComponent;
5
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAQ,MAAM,cAAc,CAAC;AAEnD,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,mDAC+B,CAAC;AACnE,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
+ declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
+ export default AutoLayoutViewNativeComponent;
4
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.harmony.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.harmony.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.harmony.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ /*
4
+ * MIT License
5
+ *
6
+ * Copyright (C) 2023 Huawei Device Co., Ltd.
7
+ *
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ */
26
+ var react_native_1 = require("react-native");
27
+ var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
28
+ exports.default = AutoLayoutViewNativeComponent;
29
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.harmony.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.harmony.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.harmony.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
+ declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
+ export default AutoLayoutViewNativeComponent;
4
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.ios.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_native_1 = require("react-native");
4
+ var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
5
+ exports.default = AutoLayoutViewNativeComponent;
6
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.ios.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_native_1 = require("react-native");
4
+ var AutoLayoutViewNativeComponent = react_native_1.View;
5
+ exports.default = AutoLayoutViewNativeComponent;
6
+ //# sourceMappingURL=AutoLayoutViewNativeComponent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponent.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":";;AAAA,6CAAmD;AAInD,IAAM,6BAA6B,GACjC,mBAAgE,CAAC;AACnE,kBAAe,6BAA6B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { ReactNode } from "react";
2
+ export interface OnBlankAreaEvent {
3
+ nativeEvent: {
4
+ offsetStart: number;
5
+ offsetEnd: number;
6
+ };
7
+ }
8
+ declare type OnBlankAreaEventHandler = (event: OnBlankAreaEvent) => void;
9
+ export interface AutoLayoutViewNativeComponentProps {
10
+ children?: ReactNode;
11
+ onBlankAreaEvent: OnBlankAreaEventHandler;
12
+ enableInstrumentation: boolean;
13
+ disableAutoLayout?: boolean;
14
+ }
15
+ export {};
16
+ //# sourceMappingURL=AutoLayoutViewNativeComponentProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoLayoutViewNativeComponentProps.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponentProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,gBAAgB;IAC/B,WAAW,EAAE;QACX,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CACH;AAED,aAAK,uBAAuB,GAAG,CAAC,KAAK,EAAE,gBAAgB,KAAK,IAAI,CAAC;AAEjE,MAAM,WAAW,kCAAkC;IACjD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,uBAAuB,CAAC;IAC1C,qBAAqB,EAAE,OAAO,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B"}