Fixed draft navigation issue

This commit is contained in:
Mustafa Buyukcelebi 2019-05-06 12:36:07 +03:00
parent cdace17600
commit 435b1ab726

View File

@ -56,7 +56,13 @@ class DraftsScreen extends Component {
image={image ? { uri: catchDraftImage(item.body) } : null} image={image ? { uri: catchDraftImage(item.body) } : null}
username={currentAccount.name} username={currentAccount.name}
reputation={currentAccount.reputation} 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} handleOnRemoveItem={isSchedules ? removeSchedule : removeDraft}
id={item._id} id={item._id}
key={item._id} key={item._id}