diff --git a/source/community/reactnative/src/components/elements/image.js b/source/community/reactnative/src/components/elements/image.js
index dc1fd62efb..4c8ff8e56a 100644
--- a/source/community/reactnative/src/components/elements/image.js
+++ b/source/community/reactnative/src/components/elements/image.js
@@ -7,7 +7,8 @@
import React from 'react';
import {
StyleSheet,
- Image
+ Image,
+ View
} from 'react-native';
import * as Utils from '../../utils/util';
@@ -273,6 +274,7 @@ export class Img extends React.Component {
}
getImageComponent(imageUrl, wrapperComputedStyle, imageComputedStyle) {
+ console.log(this.payload.altText);
return (
-
+ {
+ this.payload.altText ?
+
+ :
+ }
);
}
diff --git a/source/community/reactnative/src/utils/markdown-formatter.js b/source/community/reactnative/src/utils/markdown-formatter.js
index 3d02aed362..aa2a1e767e 100644
--- a/source/community/reactnative/src/utils/markdown-formatter.js
+++ b/source/community/reactnative/src/utils/markdown-formatter.js
@@ -110,11 +110,9 @@ export default class MarkdownFormatter extends React.PureComponent {
}
return (
- this.altText ?
-
- {this.renderText(this.text)}
- :
- this.renderText(this.text)
+
+ {this.renderText(this.text)}
+
);
}