@shopify/flash-list 1.4.1 → 1.4.3
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.
- package/CHANGELOG.md +12 -0
- package/android/src/main/kotlin/com/shopify/reactnative/flash_list/AutoLayoutShadow.kt +28 -22
- package/android/src/test/java/com/shopify/reactnative/flash_list/AutoLayoutShadowTest.kt +10 -9
- package/android/src/test/java/com/shopify/reactnative/flash_list/models/Rect.kt +3 -1
- package/android/src/test/resources/LayoutTestData.json +160 -80
- package/dist/FlashList.d.ts.map +1 -1
- package/dist/FlashList.js +1 -1
- package/dist/FlashList.js.map +1 -1
- package/dist/FlashListProps.d.ts +1 -0
- package/dist/FlashListProps.d.ts.map +1 -1
- package/dist/native/config/PlatformHelper.android.d.ts +5 -0
- package/dist/native/config/PlatformHelper.android.d.ts.map +1 -1
- package/dist/native/config/PlatformHelper.android.js +2 -0
- package/dist/native/config/PlatformHelper.android.js.map +1 -1
- package/dist/native/config/PlatformHelper.d.ts +5 -0
- package/dist/native/config/PlatformHelper.d.ts.map +1 -1
- package/dist/native/config/PlatformHelper.ios.d.ts +5 -0
- package/dist/native/config/PlatformHelper.ios.d.ts.map +1 -1
- package/dist/native/config/PlatformHelper.ios.js +1 -0
- package/dist/native/config/PlatformHelper.ios.js.map +1 -1
- package/dist/native/config/PlatformHelper.js +1 -0
- package/dist/native/config/PlatformHelper.js.map +1 -1
- package/dist/native/config/PlatformHelper.web.d.ts +5 -0
- package/dist/native/config/PlatformHelper.web.d.ts.map +1 -1
- package/dist/native/config/PlatformHelper.web.js +1 -0
- package/dist/native/config/PlatformHelper.web.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/ios/Sources/AutoLayoutView.swift +27 -22
- package/package.json +2 -2
- package/src/FlashList.tsx +1 -1
- package/src/FlashListProps.ts +1 -0
- package/src/native/config/PlatformHelper.android.ts +2 -0
- package/src/native/config/PlatformHelper.ios.ts +1 -0
- package/src/native/config/PlatformHelper.ts +1 -0
- package/src/native/config/PlatformHelper.web.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopify/flash-list",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.3",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"react-native",
|
|
6
6
|
"recyclerview",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"main": "dist/index.js",
|
|
29
29
|
"types": "dist/index.d.ts",
|
|
30
30
|
"scripts": {
|
|
31
|
-
"up": "bundle install && yarn fixture-up && yarn e2e-up && yarn build
|
|
31
|
+
"up": "bundle install && yarn fixture-up && yarn e2e-up && yarn build",
|
|
32
32
|
"fixture-web-up": "cd fixture/web-app && yarn && cd ../../",
|
|
33
33
|
"fixture-up": "cd fixture && yarn && cd ios && bundle exec pod install && cd ../../",
|
|
34
34
|
"e2e-up": "cd fixture/ios && brew tap wix/brew && brew install applesimutils && cd ../../",
|
package/src/FlashList.tsx
CHANGED
|
@@ -69,7 +69,7 @@ class FlashList<T> extends React.PureComponent<
|
|
|
69
69
|
private rlvRef?: RecyclerListView<RecyclerListViewProps, any>;
|
|
70
70
|
private stickyContentContainerRef?: PureComponentWrapper;
|
|
71
71
|
private listFixedDimensionSize = 0;
|
|
72
|
-
private transformStyle =
|
|
72
|
+
private transformStyle = PlatformConfig.invertedTransformStyle;
|
|
73
73
|
private transformStyleHorizontal = { transform: [{ scaleX: -1 }] };
|
|
74
74
|
private distanceFromWindow = 0;
|
|
75
75
|
private contentStyle: ContentStyleExplicit = {
|
package/src/FlashListProps.ts
CHANGED
|
@@ -2,6 +2,8 @@ import { BaseItemAnimator } from "recyclerlistview";
|
|
|
2
2
|
|
|
3
3
|
const PlatformConfig = {
|
|
4
4
|
defaultDrawDistance: 250,
|
|
5
|
+
// Using rotate instead of scaleY on Android to avoid performance issues. Issue: https://github.com/Shopify/flash-list/issues/751
|
|
6
|
+
invertedTransformStyle: { transform: [{ rotate: "180deg" }] },
|
|
5
7
|
};
|
|
6
8
|
const getCellContainerPlatformStyles = (
|
|
7
9
|
inverted: boolean,
|