为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

白猪掌柜的 2018-08-10 18:59:00
问题如图 有谁知道为什么吗?我的代码这样写的:    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.
查看完整描述

1 回答

?
幕布斯6054654

TA贡献1876条经验 获得超7个赞

传递的参数错误导致

查看完整回答
反对 回复 2018-08-12
  • 1 回答
  • 0 关注
  • 717 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信