Attachment

This commit is contained in:
Diego Mello 2020-05-26 16:14:43 -03:00
parent 988d3a396f
commit 3347a6755a
1 changed files with 2 additions and 2 deletions

View File

@ -34,11 +34,11 @@ class AttachmentView extends React.Component {
const { title } = attachment; const { title } = attachment;
const options = { const options = {
title: decodeURI(title), title: decodeURI(title),
headerRight: <SaveButton testID='save-image' onPress={handleSave} /> headerRight: () => <SaveButton testID='save-image' onPress={handleSave} />
}; };
if (from !== 'MessagesView') { if (from !== 'MessagesView') {
options.gesturesEnabled = false; options.gesturesEnabled = false;
options.headerLeft = <CloseModalButton testID='close-attachment-view' navigation={navigation} />; options.headerLeft = () => <CloseModalButton testID='close-attachment-view' navigation={navigation} />;
} }
return options; return options;
} }