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 options = {
title: decodeURI(title),
headerRight: <SaveButton testID='save-image' onPress={handleSave} />
headerRight: () => <SaveButton testID='save-image' onPress={handleSave} />
};
if (from !== 'MessagesView') {
options.gesturesEnabled = false;
options.headerLeft = <CloseModalButton testID='close-attachment-view' navigation={navigation} />;
options.headerLeft = () => <CloseModalButton testID='close-attachment-view' navigation={navigation} />;
}
return options;
}