react-native 突然出现这个错误 不知道是为啥 之前都好好的

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.
阅读 2.3k
1 个回答

传递的参数错误导致

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题