From 435b1ab72606ef82385df91e60076f0fd28ae054 Mon Sep 17 00:00:00 2001 From: Mustafa Buyukcelebi Date: Mon, 6 May 2019 12:36:07 +0300 Subject: [PATCH] Fixed draft navigation issue --- src/screens/drafts/screen/draftsScreen.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/screens/drafts/screen/draftsScreen.js b/src/screens/drafts/screen/draftsScreen.js index eff9f5721..c111ec8ee 100644 --- a/src/screens/drafts/screen/draftsScreen.js +++ b/src/screens/drafts/screen/draftsScreen.js @@ -56,7 +56,13 @@ class DraftsScreen extends Component { image={image ? { uri: catchDraftImage(item.body) } : null} username={currentAccount.name} reputation={currentAccount.reputation} - handleOnPressItem={() => (isSchedules ? this.setState({ selectedId: item._id }, () => this.ActionSheet.show()) : editDraft)} + handleOnPressItem={ + () => ( + isSchedules + ? this.setState({ selectedId: item._id }, () => this.ActionSheet.show()) + : editDraft(item._id) + ) + } handleOnRemoveItem={isSchedules ? removeSchedule : removeDraft} id={item._id} key={item._id}