From c3e84dc9f91cd59bd2eefc4c0daaa5bf0efa52bf Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 6 Dec 2017 12:59:48 -0200 Subject: [PATCH] New styles for RoomListView header --- app/views/RoomsListView/Header.js | 55 +++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 14 deletions(-) diff --git a/app/views/RoomsListView/Header.js b/app/views/RoomsListView/Header.js index 5128eae8a..59808eb7a 100644 --- a/app/views/RoomsListView/Header.js +++ b/app/views/RoomsListView/Header.js @@ -25,7 +25,8 @@ const styles = StyleSheet.create({ position: 'absolute', alignItems: 'center', justifyContent: Platform.OS === 'ios' ? 'center' : 'flex-start', - flexDirection: 'row' + flexDirection: 'row', + height: 44 }, status: { borderRadius: 4, @@ -37,7 +38,8 @@ const styles = StyleSheet.create({ marginRight: 10 }, title: { - fontWeight: 'normal' + fontWeight: '500', + color: '#292E35' }, left: { left: 0, @@ -45,7 +47,8 @@ const styles = StyleSheet.create({ }, right: { right: 0, - position: 'absolute' + position: 'absolute', + flexDirection: 'row' }, modal: { width: width - 60, @@ -64,11 +67,17 @@ const styles = StyleSheet.create({ borderBottomColor: 'rgba(0, 0, 0, .3)', paddingHorizontal: 20 }, + headerButton: { + backgroundColor: 'transparent', + height: 44, + width: 44, + alignItems: 'center', + justifyContent: 'center' + }, serverImage: { - width: 32, - height: 32, - padding: 10, - marginLeft: 10 + width: 24, + height: 24, + borderRadius: 4 } }); @@ -111,6 +120,7 @@ export default class extends React.PureComponent { return ( this.props.navigation.navigate('DrawerOpen')} > - this.createChannel()} - /> + {Platform.OS !== 'ios' ? + alert('search!')} + > + + : null} + {Platform.OS === 'ios' ? + this.createChannel()} + > + + : null} ); }