fix for huawei not rendering posts (#751)

This commit is contained in:
enahum
2017-07-17 16:02:40 -04:00
committed by GitHub
parent b0ff189147
commit 03488f6010

View File

@@ -3,7 +3,7 @@
import React, {PureComponent} from 'react'; import React, {PureComponent} from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import {FlatList, RefreshControl, ScrollView, StyleSheet, View} from 'react-native'; import {FlatList, Platform, RefreshControl, ScrollView, StyleSheet, View} from 'react-native';
import VirtualList from './virtual_list'; import VirtualList from './virtual_list';
@@ -129,11 +129,21 @@ const styles = StyleSheet.create({
container: { container: {
flex: 1 flex: 1
}, },
vertical: { vertical: Platform.select({
transform: [{scaleY: -1}] android: {
}, scaleY: -1
horizontal: { },
transform: [{scaleX: -1}] ios: {
} transform: [{scaleY: -1}]
}
}),
horizontal: Platform.select({
android: {
scaleX: -1
},
ios: {
transform: [{scaleX: -1}]
}
})
}); });