@shopify/flash-list 1.1.0 → 1.2.0

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 (74) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt +5 -0
  3. package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutView.kt +78 -7
  4. package/dist/FlashList.d.ts +2 -1
  5. package/dist/FlashList.d.ts.map +1 -1
  6. package/dist/FlashList.js +38 -17
  7. package/dist/FlashList.js.map +1 -1
  8. package/dist/__tests__/FlashList.test.js +62 -2
  9. package/dist/__tests__/FlashList.test.js.map +1 -1
  10. package/dist/__tests__/PlatformHelper.web.test.js +9 -1
  11. package/dist/__tests__/PlatformHelper.web.test.js.map +1 -1
  12. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts +4 -0
  13. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.d.ts.map +1 -0
  14. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js +6 -0
  15. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.android.js.map +1 -0
  16. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts +2 -1
  17. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.d.ts.map +1 -1
  18. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts +4 -0
  19. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.d.ts.map +1 -0
  20. package/dist/native/auto-layout/{AutoLayoutViewNativeComponent.web.js → AutoLayoutViewNativeComponent.ios.js} +2 -2
  21. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.ios.js.map +1 -0
  22. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js +1 -1
  23. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.js.map +1 -1
  24. package/dist/native/cell-container/CellContainer.android.d.ts +6 -0
  25. package/dist/native/cell-container/CellContainer.android.d.ts.map +1 -0
  26. package/dist/native/cell-container/CellContainer.android.js +9 -0
  27. package/dist/native/cell-container/CellContainer.android.js.map +1 -0
  28. package/dist/native/cell-container/CellContainer.d.ts +6 -4
  29. package/dist/native/cell-container/CellContainer.d.ts.map +1 -1
  30. package/dist/native/cell-container/CellContainer.ios.d.ts +6 -0
  31. package/dist/native/cell-container/CellContainer.ios.d.ts.map +1 -0
  32. package/dist/native/cell-container/CellContainer.ios.js +9 -0
  33. package/dist/native/cell-container/CellContainer.ios.js.map +1 -0
  34. package/dist/native/cell-container/CellContainer.js +6 -4
  35. package/dist/native/cell-container/CellContainer.js.map +1 -1
  36. package/dist/native/config/PlatformHelper.android.d.ts +16 -0
  37. package/dist/native/config/PlatformHelper.android.d.ts.map +1 -0
  38. package/dist/native/config/PlatformHelper.android.js +20 -0
  39. package/dist/native/config/PlatformHelper.android.js.map +1 -0
  40. package/dist/{utils → native/config}/PlatformHelper.d.ts +3 -1
  41. package/dist/native/config/PlatformHelper.d.ts.map +1 -0
  42. package/dist/{utils/PlatformHelper.web.d.ts → native/config/PlatformHelper.ios.d.ts} +4 -2
  43. package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -0
  44. package/dist/{utils/PlatformHelper.js → native/config/PlatformHelper.ios.js} +6 -2
  45. package/dist/native/config/PlatformHelper.ios.js.map +1 -0
  46. package/dist/native/config/PlatformHelper.js +21 -0
  47. package/dist/native/config/PlatformHelper.js.map +1 -0
  48. package/dist/native/config/PlatformHelper.web.d.ts +17 -0
  49. package/dist/native/config/PlatformHelper.web.d.ts.map +1 -0
  50. package/dist/{utils → native/config}/PlatformHelper.web.js +7 -2
  51. package/dist/native/config/PlatformHelper.web.js.map +1 -0
  52. package/dist/tsconfig.tsbuildinfo +1 -1
  53. package/ios/Sources/AutoLayoutView.swift +61 -8
  54. package/package.json +2 -2
  55. package/src/FlashList.tsx +53 -14
  56. package/src/__tests__/FlashList.test.tsx +65 -2
  57. package/src/__tests__/PlatformHelper.web.test.ts +17 -1
  58. package/src/native/auto-layout/{AutoLayoutViewNativeComponent.web.ts → AutoLayoutViewNativeComponent.android.ts} +2 -3
  59. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ios.ts +7 -0
  60. package/src/native/auto-layout/AutoLayoutViewNativeComponent.ts +2 -2
  61. package/src/native/cell-container/{CellContainer.ts → CellContainer.android.ts} +0 -0
  62. package/src/native/cell-container/CellContainer.ios.ts +7 -0
  63. package/src/native/cell-container/CellContainer.tsx +14 -0
  64. package/src/{utils/PlatformHelper.ts → native/config/PlatformHelper.android.ts} +12 -2
  65. package/src/native/config/PlatformHelper.ios.ts +26 -0
  66. package/src/native/config/PlatformHelper.ts +27 -0
  67. package/src/{utils → native/config}/PlatformHelper.web.ts +15 -3
  68. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.d.ts +0 -5
  69. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.d.ts.map +0 -1
  70. package/dist/native/auto-layout/AutoLayoutViewNativeComponent.web.js.map +0 -1
  71. package/dist/utils/PlatformHelper.d.ts.map +0 -1
  72. package/dist/utils/PlatformHelper.js.map +0 -1
  73. package/dist/utils/PlatformHelper.web.d.ts.map +0 -1
  74. package/dist/utils/PlatformHelper.web.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var PlatformHelper_web_1 = require("../utils/PlatformHelper.web");
3
+ var PlatformHelper_web_1 = require("../native/config/PlatformHelper.web");
4
4
  describe("Platform Helper Web", function () {
5
5
  it("can compute right transform for web", function () {
6
6
  var transformStyle = (0, PlatformHelper_web_1.getCellContainerPlatformStyles)(false, {
@@ -11,12 +11,20 @@ describe("Platform Helper Web", function () {
11
11
  x: 30,
12
12
  y: 30,
13
13
  });
14
+ var transformHorizontalInvertedStyle = (0, PlatformHelper_web_1.getCellContainerPlatformStyles)(true, {
15
+ x: 30,
16
+ y: 30,
17
+ isHorizontal: true,
18
+ });
14
19
  var expectedTransform = "translate(20px,70px)";
15
20
  var expectedTransformInverted = "translate(30px,30px) scaleY(-1)";
21
+ var expectedTransformHorizontalInverted = "translate(30px,30px) scaleX(-1)";
16
22
  expect(transformStyle === null || transformStyle === void 0 ? void 0 : transformStyle.transform).toBe(expectedTransform);
17
23
  expect(transformStyle === null || transformStyle === void 0 ? void 0 : transformStyle.WebkitTransform).toBe(expectedTransform);
18
24
  expect(transformInvertedStyle === null || transformInvertedStyle === void 0 ? void 0 : transformInvertedStyle.transform).toBe(expectedTransformInverted);
19
25
  expect(transformInvertedStyle === null || transformInvertedStyle === void 0 ? void 0 : transformInvertedStyle.WebkitTransform).toBe(expectedTransformInverted);
26
+ expect(transformHorizontalInvertedStyle === null || transformHorizontalInvertedStyle === void 0 ? void 0 : transformHorizontalInvertedStyle.transform).toBe(expectedTransformHorizontalInverted);
27
+ expect(transformHorizontalInvertedStyle === null || transformHorizontalInvertedStyle === void 0 ? void 0 : transformHorizontalInvertedStyle.WebkitTransform).toBe(expectedTransformHorizontalInverted);
20
28
  });
21
29
  it("can return an animator", function () {
22
30
  expect((0, PlatformHelper_web_1.getItemAnimator)()["animateWillMount"]).toBeDefined();
@@ -1 +1 @@
1
- {"version":3,"file":"PlatformHelper.web.test.js","sourceRoot":"","sources":["../../src/__tests__/PlatformHelper.web.test.ts"],"names":[],"mappings":";;AAAA,kEAGqC;AAErC,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,EAAE,CAAC,qCAAqC,EAAE;QACxC,IAAM,cAAc,GAAG,IAAA,mDAA8B,EAAC,KAAK,EAAE;YAC3D,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN,CAAC,CAAC;QACH,IAAM,sBAAsB,GAAG,IAAA,mDAA8B,EAAC,IAAI,EAAE;YAClE,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN,CAAC,CAAC;QACH,IAAM,iBAAiB,GAAG,sBAAsB,CAAC;QACjD,IAAM,yBAAyB,GAAG,iCAAiC,CAAC;QAEpE,MAAM,CAAC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC1D,MAAM,CAAC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAChE,MAAM,CAAC,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,SAAS,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC1E,MAAM,CAAC,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,eAAe,CAAC,CAAC,IAAI,CAClD,yBAAyB,CAC1B,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,wBAAwB,EAAE;QAC3B,MAAM,CAAC,IAAA,oCAAe,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"PlatformHelper.web.test.js","sourceRoot":"","sources":["../../src/__tests__/PlatformHelper.web.test.ts"],"names":[],"mappings":";;AAAA,0EAG6C;AAE7C,QAAQ,CAAC,qBAAqB,EAAE;IAC9B,EAAE,CAAC,qCAAqC,EAAE;QACxC,IAAM,cAAc,GAAG,IAAA,mDAA8B,EAAC,KAAK,EAAE;YAC3D,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN,CAAC,CAAC;QACH,IAAM,sBAAsB,GAAG,IAAA,mDAA8B,EAAC,IAAI,EAAE;YAClE,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;SACN,CAAC,CAAC;QACH,IAAM,gCAAgC,GAAG,IAAA,mDAA8B,EACrE,IAAI,EACJ;YACE,CAAC,EAAE,EAAE;YACL,CAAC,EAAE,EAAE;YACL,YAAY,EAAE,IAAI;SACnB,CACF,CAAC;QACF,IAAM,iBAAiB,GAAG,sBAAsB,CAAC;QACjD,IAAM,yBAAyB,GAAG,iCAAiC,CAAC;QACpE,IAAM,mCAAmC,GACvC,iCAAiC,CAAC;QAEpC,MAAM,CAAC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,SAAS,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC1D,MAAM,CAAC,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,eAAe,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAChE,MAAM,CAAC,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,SAAS,CAAC,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC1E,MAAM,CAAC,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,eAAe,CAAC,CAAC,IAAI,CAClD,yBAAyB,CAC1B,CAAC;QACF,MAAM,CAAC,gCAAgC,aAAhC,gCAAgC,uBAAhC,gCAAgC,CAAE,SAAS,CAAC,CAAC,IAAI,CACtD,mCAAmC,CACpC,CAAC;QACF,MAAM,CAAC,gCAAgC,aAAhC,gCAAgC,uBAAhC,gCAAgC,CAAE,eAAe,CAAC,CAAC,IAAI,CAC5D,mCAAmC,CACpC,CAAC;IACJ,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,wBAAwB,EAAE;QAC3B,MAAM,CAAC,IAAA,oCAAe,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC/D,CAAC,CAAC,CAAC;AACL,CAAC,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"}
@@ -1,4 +1,5 @@
1
+ import { HostComponent } from "react-native";
1
2
  import { AutoLayoutViewNativeComponentProps } from "./AutoLayoutViewNativeComponentProps";
2
- declare const AutoLayoutViewNativeComponent: import("react-native").HostComponent<AutoLayoutViewNativeComponentProps>;
3
+ declare const AutoLayoutViewNativeComponent: HostComponent<AutoLayoutViewNativeComponentProps>;
3
4
  export default AutoLayoutViewNativeComponent;
4
5
  //# sourceMappingURL=AutoLayoutViewNativeComponent.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kCAAkC,EAAE,MAAM,sCAAsC,CAAC;AAE1F,QAAA,MAAM,6BAA6B,0EAC2C,CAAC;AAC/E,eAAe,6BAA6B,CAAC"}
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.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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var react_native_1 = require("react-native");
4
- var AutoLayoutViewNativeComponent = react_native_1.View;
4
+ var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
5
5
  exports.default = AutoLayoutViewNativeComponent;
6
- //# sourceMappingURL=AutoLayoutViewNativeComponent.web.js.map
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"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  var react_native_1 = require("react-native");
4
- var AutoLayoutViewNativeComponent = (0, react_native_1.requireNativeComponent)("AutoLayoutView");
4
+ var AutoLayoutViewNativeComponent = react_native_1.View;
5
5
  exports.default = AutoLayoutViewNativeComponent;
6
6
  //# sourceMappingURL=AutoLayoutViewNativeComponent.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AutoLayoutViewNativeComponent.js","sourceRoot":"","sources":["../../../src/native/auto-layout/AutoLayoutViewNativeComponent.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAItD,IAAM,6BAA6B,GACjC,IAAA,qCAAsB,EAAqC,gBAAgB,CAAC,CAAC;AAC/E,kBAAe,6BAA6B,CAAC"}
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,6 @@
1
+ /**
2
+ * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
3
+ */
4
+ declare const CellContainer: import("react-native").HostComponent<unknown>;
5
+ export default CellContainer;
6
+ //# sourceMappingURL=CellContainer.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainer.android.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.android.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,aAAa,+CAA0C,CAAC;AAC9D,eAAe,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_native_1 = require("react-native");
4
+ /**
5
+ * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
6
+ */
7
+ var CellContainer = (0, react_native_1.requireNativeComponent)("CellContainer");
8
+ exports.default = CellContainer;
9
+ //# sourceMappingURL=CellContainer.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainer.android.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.android.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAEtD;;GAEG;AACH,IAAM,aAAa,GAAG,IAAA,qCAAsB,EAAC,eAAe,CAAC,CAAC;AAC9D,kBAAe,aAAa,CAAC"}
@@ -1,6 +1,8 @@
1
- /**
2
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
3
- */
4
- declare const CellContainer: import("react-native").HostComponent<unknown>;
1
+ import React from "react";
2
+ import { ViewProps } from "react-native";
3
+ export interface CellContainerProps extends ViewProps {
4
+ index: number;
5
+ }
6
+ declare const CellContainer: React.ForwardRefExoticComponent<CellContainerProps & React.RefAttributes<unknown>>;
5
7
  export default CellContainer;
6
8
  //# sourceMappingURL=CellContainer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CellContainer.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,aAAa,+CAA0C,CAAC;AAC9D,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CellContainer.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAQ,SAAS,EAAE,MAAM,cAAc,CAAC;AAE/C,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,aAAa,oFAIlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
3
+ */
4
+ declare const CellContainer: import("react-native").HostComponent<unknown>;
5
+ export default CellContainer;
6
+ //# sourceMappingURL=CellContainer.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainer.ios.d.ts","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ios.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,QAAA,MAAM,aAAa,+CAA0C,CAAC;AAC9D,eAAe,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var react_native_1 = require("react-native");
4
+ /**
5
+ * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
6
+ */
7
+ var CellContainer = (0, react_native_1.requireNativeComponent)("CellContainer");
8
+ exports.default = CellContainer;
9
+ //# sourceMappingURL=CellContainer.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CellContainer.ios.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ios.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAEtD;;GAEG;AACH,IAAM,aAAa,GAAG,IAAA,qCAAsB,EAAC,eAAe,CAAC,CAAC;AAC9D,kBAAe,aAAa,CAAC"}
@@ -1,9 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tslib_1 = require("tslib");
4
+ var react_1 = tslib_1.__importDefault(require("react"));
3
5
  var react_native_1 = require("react-native");
4
- /**
5
- * Behaves as a regular `View` with an extra `index` prop that is saved in the native layer.
6
- */
7
- var CellContainer = (0, react_native_1.requireNativeComponent)("CellContainer");
6
+ var CellContainer = react_1.default.forwardRef(function (props, ref) {
7
+ return react_1.default.createElement(react_native_1.View, tslib_1.__assign({ ref: ref }, props));
8
+ });
9
+ CellContainer.displayName = "CellContainer";
8
10
  exports.default = CellContainer;
9
11
  //# sourceMappingURL=CellContainer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CellContainer.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.ts"],"names":[],"mappings":";;AAAA,6CAAsD;AAEtD;;GAEG;AACH,IAAM,aAAa,GAAG,IAAA,qCAAsB,EAAC,eAAe,CAAC,CAAC;AAC9D,kBAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"CellContainer.js","sourceRoot":"","sources":["../../../src/native/cell-container/CellContainer.tsx"],"names":[],"mappings":";;;AAAA,wDAA0B;AAC1B,6CAA+C;AAM/C,IAAM,aAAa,GAAG,eAAK,CAAC,UAAU,CACpC,UAAC,KAAyB,EAAE,GAAQ;IAClC,OAAO,8BAAC,mBAAI,qBAAC,GAAG,EAAE,GAAG,IAAM,KAAK,EAAI,CAAC;AACvC,CAAC,CACF,CAAC;AACF,aAAa,CAAC,WAAW,GAAG,eAAe,CAAC;AAC5C,kBAAe,aAAa,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { BaseItemAnimator } from "recyclerlistview";
2
+ declare const PlatformConfig: {
3
+ defaultDrawDistance: number;
4
+ };
5
+ declare const getCellContainerPlatformStyles: (inverted: boolean, parentProps: {
6
+ x: number;
7
+ y: number;
8
+ isHorizontal?: boolean;
9
+ }) => {
10
+ transform: string;
11
+ WebkitTransform: string;
12
+ } | undefined;
13
+ declare const getItemAnimator: () => BaseItemAnimator | undefined;
14
+ declare const getFooterContainer: () => React.ComponentClass | undefined;
15
+ export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator, getFooterContainer, };
16
+ //# sourceMappingURL=PlatformHelper.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.android.d.ts","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.android.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,QAAA,MAAM,cAAc;;CAEnB,CAAC;AACF,QAAA,MAAM,8BAA8B,aACxB,OAAO,eACJ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5D;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAAG,SAEnD,CAAC;AAEF,QAAA,MAAM,eAAe,QAAO,gBAAgB,GAAG,SAE9C,CAAC;AAEF,QAAA,MAAM,kBAAkB,QAAO,MAAM,cAAc,GAAG,SAErD,CAAC;AAEF,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,eAAe,EACf,kBAAkB,GACnB,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFooterContainer = exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
4
+ var PlatformConfig = {
5
+ defaultDrawDistance: 250,
6
+ };
7
+ exports.PlatformConfig = PlatformConfig;
8
+ var getCellContainerPlatformStyles = function (inverted, parentProps) {
9
+ return undefined;
10
+ };
11
+ exports.getCellContainerPlatformStyles = getCellContainerPlatformStyles;
12
+ var getItemAnimator = function () {
13
+ return undefined;
14
+ };
15
+ exports.getItemAnimator = getItemAnimator;
16
+ var getFooterContainer = function () {
17
+ return undefined;
18
+ };
19
+ exports.getFooterContainer = getFooterContainer;
20
+ //# sourceMappingURL=PlatformHelper.android.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.android.js","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.android.ts"],"names":[],"mappings":";;;AAEA,IAAM,cAAc,GAAG;IACrB,mBAAmB,EAAE,GAAG;CACzB,CAAC;AAiBA,wCAAc;AAhBhB,IAAM,8BAA8B,GAAG,UACrC,QAAiB,EACjB,WAA6D;IAE7D,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAYA,wEAA8B;AAVhC,IAAM,eAAe,GAAG;IACtB,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AASA,0CAAe;AAPjB,IAAM,kBAAkB,GAAG;IACzB,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAMA,gDAAkB"}
@@ -5,10 +5,12 @@ declare const PlatformConfig: {
5
5
  declare const getCellContainerPlatformStyles: (inverted: boolean, parentProps: {
6
6
  x: number;
7
7
  y: number;
8
+ isHorizontal?: boolean;
8
9
  }) => {
9
10
  transform: string;
10
11
  WebkitTransform: string;
11
12
  } | undefined;
12
13
  declare const getItemAnimator: () => BaseItemAnimator | undefined;
13
- export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator };
14
+ declare const getFooterContainer: () => React.ComponentClass | undefined;
15
+ export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator, getFooterContainer, };
14
16
  //# sourceMappingURL=PlatformHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.d.ts","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,QAAA,MAAM,cAAc;;CAEnB,CAAC;AACF,QAAA,MAAM,8BAA8B,aACxB,OAAO,eACJ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5D;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAAG,SAEnD,CAAC;AAEF,QAAA,MAAM,eAAe,QAAO,gBAAgB,GAAG,SAE9C,CAAC;AAEF,QAAA,MAAM,kBAAkB,QAAO,MAAM,cAAc,GAAG,SAErD,CAAC;AAEF,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,eAAe,EACf,kBAAkB,GACnB,CAAC"}
@@ -5,10 +5,12 @@ declare const PlatformConfig: {
5
5
  declare const getCellContainerPlatformStyles: (inverted: boolean, parentProps: {
6
6
  x: number;
7
7
  y: number;
8
+ isHorizontal?: boolean;
8
9
  }) => {
9
10
  transform: string;
10
11
  WebkitTransform: string;
11
12
  } | undefined;
12
13
  declare const getItemAnimator: () => BaseItemAnimator | undefined;
13
- export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator };
14
- //# sourceMappingURL=PlatformHelper.web.d.ts.map
14
+ declare const getFooterContainer: () => React.ComponentClass | undefined;
15
+ export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator, getFooterContainer, };
16
+ //# sourceMappingURL=PlatformHelper.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.ios.d.ts","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.ios.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,QAAA,MAAM,cAAc;;CAEnB,CAAC;AACF,QAAA,MAAM,8BAA8B,aACxB,OAAO,eACJ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5D;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAAG,SAEnD,CAAC;AAEF,QAAA,MAAM,eAAe,QAAO,gBAAgB,GAAG,SAE9C,CAAC;AAEF,QAAA,MAAM,kBAAkB,QAAO,MAAM,cAAc,GAAG,SAErD,CAAC;AAEF,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,eAAe,EACf,kBAAkB,GACnB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
3
+ exports.getFooterContainer = exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
4
4
  var PlatformConfig = {
5
5
  defaultDrawDistance: 250,
6
6
  };
@@ -13,4 +13,8 @@ var getItemAnimator = function () {
13
13
  return undefined;
14
14
  };
15
15
  exports.getItemAnimator = getItemAnimator;
16
- //# sourceMappingURL=PlatformHelper.js.map
16
+ var getFooterContainer = function () {
17
+ return undefined;
18
+ };
19
+ exports.getFooterContainer = getFooterContainer;
20
+ //# sourceMappingURL=PlatformHelper.ios.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.ios.js","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.ios.ts"],"names":[],"mappings":";;;AAEA,IAAM,cAAc,GAAG;IACrB,mBAAmB,EAAE,GAAG;CACzB,CAAC;AAiBA,wCAAc;AAhBhB,IAAM,8BAA8B,GAAG,UACrC,QAAiB,EACjB,WAA6D;IAE7D,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAYA,wEAA8B;AAVhC,IAAM,eAAe,GAAG;IACtB,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AASA,0CAAe;AAPjB,IAAM,kBAAkB,GAAG;IACzB,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAMA,gDAAkB"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFooterContainer = exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
4
+ var DefaultJSItemAnimator_1 = require("recyclerlistview/dist/reactnative/platform/reactnative/itemanimators/defaultjsanimator/DefaultJSItemAnimator");
5
+ var PlatformConfig = {
6
+ defaultDrawDistance: 250,
7
+ };
8
+ exports.PlatformConfig = PlatformConfig;
9
+ var getCellContainerPlatformStyles = function (inverted, parentProps) {
10
+ return undefined;
11
+ };
12
+ exports.getCellContainerPlatformStyles = getCellContainerPlatformStyles;
13
+ var getItemAnimator = function () {
14
+ return new DefaultJSItemAnimator_1.DefaultJSItemAnimator();
15
+ };
16
+ exports.getItemAnimator = getItemAnimator;
17
+ var getFooterContainer = function () {
18
+ return undefined;
19
+ };
20
+ exports.getFooterContainer = getFooterContainer;
21
+ //# sourceMappingURL=PlatformHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.js","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.ts"],"names":[],"mappings":";;;AACA,sJAAqJ;AAErJ,IAAM,cAAc,GAAG;IACrB,mBAAmB,EAAE,GAAG;CACzB,CAAC;AAiBA,wCAAc;AAhBhB,IAAM,8BAA8B,GAAG,UACrC,QAAiB,EACjB,WAA6D;IAE7D,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAYA,wEAA8B;AAVhC,IAAM,eAAe,GAAG;IACtB,OAAO,IAAI,6CAAqB,EAAE,CAAC;AACrC,CAAC,CAAC;AASA,0CAAe;AAPjB,IAAM,kBAAkB,GAAG;IACzB,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAMA,gDAAkB"}
@@ -0,0 +1,17 @@
1
+ import React from "react";
2
+ import { BaseItemAnimator } from "recyclerlistview";
3
+ declare const PlatformConfig: {
4
+ defaultDrawDistance: number;
5
+ };
6
+ declare const getCellContainerPlatformStyles: (inverted: boolean, parentProps: {
7
+ x: number;
8
+ y: number;
9
+ isHorizontal?: boolean;
10
+ }) => {
11
+ transform: string;
12
+ WebkitTransform: string;
13
+ } | undefined;
14
+ declare const getItemAnimator: () => BaseItemAnimator | undefined;
15
+ declare const getFooterContainer: () => React.ComponentClass | undefined;
16
+ export { PlatformConfig, getCellContainerPlatformStyles, getItemAnimator, getFooterContainer, };
17
+ //# sourceMappingURL=PlatformHelper.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.web.d.ts","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.web.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,QAAA,MAAM,cAAc;;CAEnB,CAAC;AACF,QAAA,MAAM,8BAA8B,aACxB,OAAO,eACJ;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,OAAO,CAAA;CAAE,KAC5D;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,eAAe,EAAE,MAAM,CAAA;CAAE,GAAG,SAKnD,CAAC;AAEF,QAAA,MAAM,eAAe,QAAO,gBAAgB,GAAG,SAE9C,CAAC;AAEF,QAAA,MAAM,kBAAkB,QAAO,MAAM,cAAc,GAAG,SAErD,CAAC;AAEF,OAAO,EACL,cAAc,EACd,8BAA8B,EAC9B,eAAe,EACf,kBAAkB,GACnB,CAAC"}
@@ -1,13 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
3
+ exports.getFooterContainer = exports.getItemAnimator = exports.getCellContainerPlatformStyles = exports.PlatformConfig = void 0;
4
+ var react_native_1 = require("react-native");
4
5
  var DefaultJSItemAnimator_1 = require("recyclerlistview/dist/reactnative/platform/reactnative/itemanimators/defaultjsanimator/DefaultJSItemAnimator");
5
6
  var PlatformConfig = {
6
7
  defaultDrawDistance: 2000,
7
8
  };
8
9
  exports.PlatformConfig = PlatformConfig;
9
10
  var getCellContainerPlatformStyles = function (inverted, parentProps) {
10
- var transformValue = "translate(".concat(parentProps.x, "px,").concat(parentProps.y, "px)").concat(inverted ? " scaleY(-1)" : "");
11
+ var transformValue = "translate(".concat(parentProps.x, "px,").concat(parentProps.y, "px)").concat(inverted ? " ".concat(parentProps.isHorizontal ? "scaleX" : "scaleY", "(-1)") : "");
11
12
  return { transform: transformValue, WebkitTransform: transformValue };
12
13
  };
13
14
  exports.getCellContainerPlatformStyles = getCellContainerPlatformStyles;
@@ -15,4 +16,8 @@ var getItemAnimator = function () {
15
16
  return new DefaultJSItemAnimator_1.DefaultJSItemAnimator();
16
17
  };
17
18
  exports.getItemAnimator = getItemAnimator;
19
+ var getFooterContainer = function () {
20
+ return react_native_1.View;
21
+ };
22
+ exports.getFooterContainer = getFooterContainer;
18
23
  //# sourceMappingURL=PlatformHelper.web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PlatformHelper.web.js","sourceRoot":"","sources":["../../../src/native/config/PlatformHelper.web.ts"],"names":[],"mappings":";;;AACA,6CAAoC;AAEpC,sJAAqJ;AAErJ,IAAM,cAAc,GAAG;IACrB,mBAAmB,EAAE,IAAI;CAC1B,CAAC;AAoBA,wCAAc;AAnBhB,IAAM,8BAA8B,GAAG,UACrC,QAAiB,EACjB,WAA6D;IAE7D,IAAM,cAAc,GAAG,oBAAa,WAAW,CAAC,CAAC,gBAAM,WAAW,CAAC,CAAC,gBAClE,QAAQ,CAAC,CAAC,CAAC,WAAI,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,SAAM,CAAC,CAAC,CAAC,EAAE,CACxE,CAAC;IACH,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC;AACxE,CAAC,CAAC;AAYA,wEAA8B;AAVhC,IAAM,eAAe,GAAG;IACtB,OAAO,IAAI,6CAAqB,EAAE,CAAC;AACrC,CAAC,CAAC;AASA,0CAAe;AAPjB,IAAM,kBAAkB,GAAG;IACzB,OAAO,mBAAI,CAAC;AACd,CAAC,CAAC;AAMA,gDAAkB"}