@react-native/virtualized-lists 0.72.5 → 0.72.8
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/Lists/VirtualizedList.js +6 -3
- package/package.json +2 -3
package/Lists/VirtualizedList.js
CHANGED
|
@@ -25,6 +25,7 @@ import type {
|
|
|
25
25
|
} from './VirtualizedListProps';
|
|
26
26
|
|
|
27
27
|
import {
|
|
28
|
+
Platform,
|
|
28
29
|
RefreshControl,
|
|
29
30
|
ScrollView,
|
|
30
31
|
View,
|
|
@@ -1125,6 +1126,7 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
|
|
1125
1126
|
style: inversionStyle
|
|
1126
1127
|
? [inversionStyle, this.props.style]
|
|
1127
1128
|
: this.props.style,
|
|
1129
|
+
isInvertedVirtualizedList: this.props.inverted,
|
|
1128
1130
|
maintainVisibleContentPosition:
|
|
1129
1131
|
this.props.maintainVisibleContentPosition != null
|
|
1130
1132
|
? {
|
|
@@ -2056,9 +2058,10 @@ class VirtualizedList extends StateSafePureComponent<Props, State> {
|
|
|
2056
2058
|
}
|
|
2057
2059
|
|
|
2058
2060
|
const styles = StyleSheet.create({
|
|
2059
|
-
verticallyInverted:
|
|
2060
|
-
|
|
2061
|
-
|
|
2061
|
+
verticallyInverted:
|
|
2062
|
+
Platform.OS === 'android'
|
|
2063
|
+
? {transform: [{scale: -1}]}
|
|
2064
|
+
: {transform: [{scaleY: -1}]},
|
|
2062
2065
|
horizontallyInverted: {
|
|
2063
2066
|
transform: [{scaleX: -1}],
|
|
2064
2067
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native/virtualized-lists",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.8",
|
|
4
4
|
"description": "Virtualized lists for React Native.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"react-test-renderer": "18.2.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"react-native": "*"
|
|
20
|
-
"react-test-renderer": "18.2.0"
|
|
19
|
+
"react-native": "*"
|
|
21
20
|
}
|
|
22
21
|
}
|