Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix actionsheet not opening

ammarahm-ed0fc85713108c
diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js
index bbafccde5..049bb2e17 100644
--- a/apps/mobile/src/components/NoteItem/index.js
+++ b/apps/mobile/src/components/NoteItem/index.js
@@ -57,13 +57,13 @@ export default class NoteItem extends React.Component {
showActionSheet = () => {
ActionSheetEvent(
- item,
- isTrash ? false : true,
- isTrash ? false : true,
- isTrash
+ this.props.item,
+ this.props.isTrash ? false : true,
+ this.props.isTrash ? false : true,
+ this.props.isTrash
? ['Remove', 'Restore']
: ['Add to', 'Share', 'Export', 'Delete', 'Copy'],
- isTrash ? [] : ['Pin', 'Favorite', 'Add to Vault'],
+ this.props.isTrash ? [] : ['Pin', 'Favorite', 'Add to Vault'],
);
};