@react-native-ohos/flash-list 1.8.3-rc.4 → 1.8.3-rc.5

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 (47) hide show
  1. package/dist/__tests__/AverageWindow.test.d.ts +2 -0
  2. package/dist/__tests__/AverageWindow.test.d.ts.map +1 -0
  3. package/dist/__tests__/AverageWindow.test.js +69 -0
  4. package/dist/__tests__/AverageWindow.test.js.map +1 -0
  5. package/dist/__tests__/ContentContainerUtils.test.d.ts +2 -0
  6. package/dist/__tests__/ContentContainerUtils.test.d.ts.map +1 -0
  7. package/dist/__tests__/ContentContainerUtils.test.js +85 -0
  8. package/dist/__tests__/ContentContainerUtils.test.js.map +1 -0
  9. package/dist/__tests__/FlashList.test.d.ts +2 -0
  10. package/dist/__tests__/FlashList.test.d.ts.map +1 -0
  11. package/dist/__tests__/FlashList.test.js +792 -0
  12. package/dist/__tests__/FlashList.test.js.map +1 -0
  13. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts +2 -0
  14. package/dist/__tests__/GridLayoutProviderWithProps.test.d.ts.map +1 -0
  15. package/dist/__tests__/GridLayoutProviderWithProps.test.js +143 -0
  16. package/dist/__tests__/GridLayoutProviderWithProps.test.js.map +1 -0
  17. package/dist/__tests__/MasonryFlashList.test.d.ts +2 -0
  18. package/dist/__tests__/MasonryFlashList.test.d.ts.map +1 -0
  19. package/dist/__tests__/MasonryFlashList.test.js +254 -0
  20. package/dist/__tests__/MasonryFlashList.test.js.map +1 -0
  21. package/dist/__tests__/PlatformHelper.web.test.d.ts +2 -0
  22. package/dist/__tests__/PlatformHelper.web.test.d.ts.map +1 -0
  23. package/dist/__tests__/PlatformHelper.web.test.js +33 -0
  24. package/dist/__tests__/PlatformHelper.web.test.js.map +1 -0
  25. package/dist/__tests__/ViewabilityHelper.test.d.ts +2 -0
  26. package/dist/__tests__/ViewabilityHelper.test.d.ts.map +1 -0
  27. package/dist/__tests__/ViewabilityHelper.test.js +187 -0
  28. package/dist/__tests__/ViewabilityHelper.test.js.map +1 -0
  29. package/dist/__tests__/helpers/mountFlashList.d.ts +19 -0
  30. package/dist/__tests__/helpers/mountFlashList.d.ts.map +1 -0
  31. package/dist/__tests__/helpers/mountFlashList.js +44 -0
  32. package/dist/__tests__/helpers/mountFlashList.js.map +1 -0
  33. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts +18 -0
  34. package/dist/__tests__/helpers/mountMasonryFlashList.d.ts.map +1 -0
  35. package/dist/__tests__/helpers/mountMasonryFlashList.js +49 -0
  36. package/dist/__tests__/helpers/mountMasonryFlashList.js.map +1 -0
  37. package/dist/__tests__/useBlankAreaTracker.test.d.ts +2 -0
  38. package/dist/__tests__/useBlankAreaTracker.test.d.ts.map +1 -0
  39. package/dist/__tests__/useBlankAreaTracker.test.js +177 -0
  40. package/dist/__tests__/useBlankAreaTracker.test.js.map +1 -0
  41. package/dist/tsconfig.tsbuildinfo +1 -1
  42. package/harmony/flash_list/BuildProfile.ets +1 -1
  43. package/harmony/flash_list/oh-package.json5 +1 -1
  44. package/harmony/flash_list/src/main/cpp/CMakeLists.txt +6 -1
  45. package/harmony/flash_list/src/main/cpp/FlashListPackage.h +8 -0
  46. package/harmony/flash_list.har +0 -0
  47. package/package.json +1 -1
@@ -32,6 +32,7 @@
32
32
  #include "AutoLayoutViewEventEmitRequestHandler.h"
33
33
  #include "AutoLayoutViewComponentInstance.h"
34
34
  #include "CellContainerComponentInstance.h"
35
+ #include <hilog/log.h>
35
36
 
36
37
  using namespace rnoh;
37
38
  using namespace facebook;
@@ -73,5 +74,12 @@ public:
73
74
  EventEmitRequestHandlers createEventEmitRequestHandlers() override {
74
75
  return {std::make_shared<AutoLayoutViewEventEmitRequestHandler>()};
75
76
  };
77
+
78
+ #ifdef PARALLELIZATION_ENABLE
79
+ std::vector<std::string> getComponentCreateInSubThread() override {
80
+ OH_LOG_Print(LOG_APP, LOG_INFO, 0, "FlashList", "enter getComponentCreateInSubThread");
81
+ return {"AutoLayoutView", "CellContainer"};
82
+ }
83
+ #endif
76
84
  };
77
85
  #endif
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-ohos/flash-list",
3
- "version": "1.8.3-rc.4",
3
+ "version": "1.8.3-rc.5",
4
4
  "keywords": [
5
5
  "react-native",
6
6
  "recyclerview",