From 4e769920a1bacf5393d3a532df94451a15a95cd6 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Tue, 14 Nov 2017 15:01:16 -0200 Subject: [PATCH] fix roomView --- app/views/RoomView.js | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/app/views/RoomView.js b/app/views/RoomView.js index 5fc9652f..acf6e53e 100644 --- a/app/views/RoomView.js +++ b/app/views/RoomView.js @@ -1,6 +1,6 @@ import React from 'react'; import PropTypes from 'prop-types'; -import { Text, View, StyleSheet, Button } from 'react-native'; +import { Text, View, StyleSheet, Button, SafeAreaView } from 'react-native'; import { ListView } from 'realm/react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; @@ -19,6 +19,9 @@ const styles = StyleSheet.create({ flex: 1, backgroundColor: '#fff' }, + safeAreaView: { + flex: 1 + }, list: { flex: 1, transform: [{ scaleY: -1 }] @@ -193,18 +196,20 @@ export default class RoomView extends React.Component { render() { return ( - + {this.renderBanner()} - this.renderItem({ item })} - initialListSize={10} - /> + + this.renderItem({ item })} + initialListSize={10} + /> + {this.renderFooter()} );