鍍金池/ 問答/HTML5  HTML/ react-native 突然出現(xiàn)這個錯誤 不知道是為啥 之前都好好的

react-native 突然出現(xiàn)這個錯誤 不知道是為啥 之前都好好的

clipboard.png
問題如圖 有誰知道為什么嗎?
我的代碼這樣寫的:

    ChatMessage = (item) => {
        const { navigate } = this.props.navigation;
        item['chattype'] = 'Friends'
        navigate('ChatMessage', item);
    }
Unhandled JS Exception: TypeError: One of the sources for assign has an enumerable key on the prototype chain. Are you trying to assign a prototype property? We don't allow it, as this is an edge case that we do not support. This error is a performance optimization and not spec compliant.
回答
編輯回答
小曖昧

傳遞的參數(shù)錯誤導致

2018年9月12日 21:18