diff --git a/app/views/roomsList.js b/app/views/roomsList.js index 37624c8b2..adb8deda2 100644 --- a/app/views/roomsList.js +++ b/app/views/roomsList.js @@ -10,7 +10,7 @@ import RoomItem from '../components/RoomItem'; const styles = StyleSheet.create({ container: { flex: 1, - alignItems: 'center', + alignItems: 'stretch', justifyContent: 'center' }, separator: { @@ -24,6 +24,13 @@ const styles = StyleSheet.create({ textAlign: 'center', fontSize: 18, color: '#ccc' + }, + bannerContainer: { + backgroundColor: '#ddd' + }, + bannerText: { + lineHeight: 28, + textAlign: 'center' } }); @@ -99,6 +106,24 @@ export default class RoomsListView extends React.Component { navigate('Room', { sid: id }); } + renderBanner = () => { + if (Meteor.getData().ddp.status !== 'connected') { + return ( + + Connecting... + + ); + } + + if (Meteor._isLoggingIn) { + return ( + + Loggining... + + ) + } + } + renderItem = ({ item }) => ( + {this.renderBanner()} {this.renderList()} );