diff --git a/app/containers/message/Card.js b/app/containers/message/Card.js
index cc594bb63..cef86b8ed 100644
--- a/app/containers/message/Card.js
+++ b/app/containers/message/Card.js
@@ -37,6 +37,12 @@ export default class Cards extends React.PureComponent {
});
}
+ getDescription() {
+ if (this.props.data.description) {
+ return {this.props.data.description};
+ }
+ }
+
getImage() {
return (
@@ -50,7 +56,7 @@ export default class Cards extends React.PureComponent {
{this.props.data.title}
- {this.props.data.description}
+ {this.getDescription()}
diff --git a/app/containers/message/PhotoModal.js b/app/containers/message/PhotoModal.js
index b0758c619..694015b01 100644
--- a/app/containers/message/PhotoModal.js
+++ b/app/containers/message/PhotoModal.js
@@ -1,26 +1,25 @@
import React from 'react';
-import { ScrollView, View, Dimensions, Text } from 'react-native';
+import { ScrollView, View, Text, TouchableWithoutFeedback } from 'react-native';
import { CachedImage } from 'react-native-img-cache';
import PropTypes from 'prop-types';
import Modal from 'react-native-modal';
-const deviceWidth = Dimensions.get('window').width;
-
const styles = {
imageWrapper: {
- alignItems: 'stretch'
+ alignItems: 'stretch',
+ flex: 1
},
image: {
- width: deviceWidth,
- height: deviceWidth
+ flex: 1
},
titleContainer: {
width: '100%',
alignItems: 'center',
- marginBottom: 15
+ marginVertical: 10
},
title: {
color: '#ffffff',
+ textAlign: 'center',
fontSize: 16,
fontWeight: '600'
}
@@ -43,17 +42,21 @@ export default class extends React.PureComponent {
onBackdropPress={onClose}
onBackButtonPress={onClose}
>
-
- {title}
-
+
+
+ {title}
+
+
-
-
+
+
+
+