From 06b9b670d60cc450f3177353d4f26b7c4e1f8db1 Mon Sep 17 00:00:00 2001 From: Diego Sampaio Date: Tue, 8 Aug 2017 23:20:34 -0300 Subject: [PATCH] Fix message styles --- app/components/Message.js | 17 +++++++++++++++++ app/views/room.js | 17 ----------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/components/Message.js b/app/components/Message.js index 8206b4a0..fdf2a4c5 100644 --- a/app/components/Message.js +++ b/app/components/Message.js @@ -8,6 +8,23 @@ const styles = StyleSheet.create({ padding: 14, flexDirection: 'row', transform: [{ scaleY: -1 }] + }, + avatar: { + backgroundColor: '#ccc', + width: 40, + height: 40, + marginRight: 10, + borderRadius: 5 + }, + texts: { + flex: 1 + }, + msg: { + flex: 1 + }, + username: { + fontWeight: 'bold', + marginBottom: 5 } }); diff --git a/app/views/room.js b/app/views/room.js index efaf4dd1..44a2cc92 100644 --- a/app/views/room.js +++ b/app/views/room.js @@ -8,23 +8,6 @@ import { loadMessagesForRoom, sendMessage } from '../lib/meteor'; import Message from '../components/Message'; const styles = StyleSheet.create({ - avatar: { - backgroundColor: '#ccc', - width: 40, - height: 40, - marginRight: 10, - borderRadius: 5 - }, - username: { - fontWeight: 'bold', - marginBottom: 5 - }, - texts: { - flex: 1 - }, - msg: { - flex: 1 - }, container: { flex: 1 },