Skip to content

Commit

Permalink
fix(virtualizedlist): fix inverted lists not showing up on Android 7 …
Browse files Browse the repository at this point in the history
…on Huawei phones
  • Loading branch information
sondremare committed Nov 21, 2017
1 parent 6ce4244 commit 82e0ef7
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions Libraries/Lists/VirtualizedList.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const ScrollView = require('ScrollView');
const StyleSheet = require('StyleSheet');
const View = require('View');
const ViewabilityHelper = require('ViewabilityHelper');
const Platform = require('Platform');

const flattenStyle = require('flattenStyle');
const infoLog = require('infoLog');
Expand Down Expand Up @@ -1245,12 +1246,22 @@ class CellRenderer extends React.Component {
}

const styles = StyleSheet.create({
verticallyInverted: {
transform: [{scaleY: -1}],
},
horizontallyInverted: {
transform: [{scaleX: -1}],
},
verticallyInverted: Platform.select({
android: {
scaleY: -1,
},
ios: {
transform: [{scaleY: -1}],
},
}),
horizontallyInverted: Platform.select({
android: {
scaleX: -1,
},
ios: {
transform: [{scaleX: -1}],
},
}),
});

module.exports = VirtualizedList;

0 comments on commit 82e0ef7

Please sign in to comment.