我想把当前项的id传递给函数来删除它。Function i want to get the id from the Item to pass it into the function to delete the item
}
< Swipeout right={swipeButtonsdata={userIngredients
当使用createStackNavigator**,时,如何传递* navigate 作为道具?在下面的示例中,items工作正常,但是当传递给MyList时,navigate是undefined。这意味着按下按钮会抛出一个错误:undefined is not a function(evaluating 'navigate('ItemDetails', { itemId: item.id })'如何将navigate传递给MyList