From 03488f6010400f0e1700a078167efb9b37339ab2 Mon Sep 17 00:00:00 2001 From: enahum Date: Mon, 17 Jul 2017 16:02:40 -0400 Subject: [PATCH] fix for huawei not rendering posts (#751) --- app/components/inverted_flat_list/index.js | 24 +++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/app/components/inverted_flat_list/index.js b/app/components/inverted_flat_list/index.js index 235d569f42..d6e379efdd 100644 --- a/app/components/inverted_flat_list/index.js +++ b/app/components/inverted_flat_list/index.js @@ -3,7 +3,7 @@ import React, {PureComponent} from 'react'; 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'; @@ -129,11 +129,21 @@ const styles = StyleSheet.create({ container: { flex: 1 }, - vertical: { - transform: [{scaleY: -1}] - }, - horizontal: { - transform: [{scaleX: -1}] - } + vertical: Platform.select({ + android: { + scaleY: -1 + }, + ios: { + transform: [{scaleY: -1}] + } + }), + horizontal: Platform.select({ + android: { + scaleX: -1 + }, + ios: { + transform: [{scaleX: -1}] + } + }) });