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