Skip to content

Commit

Permalink
Remove prop removeClippedSubviews on Flatlist (FaridSafi#897)
Browse files Browse the repository at this point in the history
- Fixes videos disappearing on Android
  • Loading branch information
watadarkstar authored and jessestuart committed Aug 9, 2018
1 parent 8233eb8 commit 1ce27c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/MessageContainer.js
Expand Up @@ -10,7 +10,7 @@
import PropTypes from 'prop-types';
import React from 'react';

import { FlatList, View, StyleSheet, Platform } from 'react-native';
import { FlatList, View, StyleSheet } from 'react-native';

import LoadEarlier from './LoadEarlier';
import Message from './Message';
Expand Down Expand Up @@ -99,7 +99,6 @@ export default class MessageContainer extends React.PureComponent {
keyExtractor={(item) => `item-${item._id}`}
enableEmptySections
automaticallyAdjustContentInsets={false}
removeClippedSubviews={Platform.OS === 'android'}
inverted={this.props.inverted}
data={this.props.messages}
style={styles.listStyle}
Expand Down

0 comments on commit 1ce27c8

Please sign in to comment.