Attachment
This commit is contained in:
parent
988d3a396f
commit
3347a6755a
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue