Fixed draft navigation issue

This commit is contained in:
Mustafa Buyukcelebi 2019-05-06 12:36:07 +03:00
parent 22ca95b5d4
commit aef55cc217

View File

@ -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}