react-native – 具有params异常的Alert.alert AlertManager
发布时间:2020-12-15 20:46:58 所属栏目:百科 来源:网络整理
导读:我正在尝试解决此错误消息: Exception ‘-[_NSDisctionary0 length]: unrecognized selector sent to instance 0x78964120’ was thrown while invoking alerWithArgs on target AlertManager with params 它来自我的代码行: const response.error = 'bad
我正在尝试解决此错误消息:
它来自我的代码行: const response.error = 'bad credentials' Alert.alert('Login error',response.error,[{ text: 'Ok' }]) 即使我从Facebook文档中复制/粘贴,我也会收到错误消息: Alert.alert( 'Alert Title','My Alert Msg',[ {text: 'Ask me later',onPress: () => console.log('Ask me later pressed')},{text: 'Cancel',onPress: () => console.log('Cancel Pressed'),style: 'cancel'},{text: 'OK',onPress: () => console.log('OK Pressed')},] ) 从错误消息中可以明显导入组件.我猜. 有人遇到过这个吗?不知道该怎么做?
对于这个用户来说已经很晚了,但是在这里添加它以防万一其他人发现它有用.
设法通过在没有消息的情况下在世博会中创建警报来导致此问题,它只有标题和按钮. 它引起了上面提到的错误,不仅仅是因为它基本上打破了世博会,并导致其他所有警报也从此失败,看起来就像海报一样.我不得不完全关闭expo应用程序,而不仅仅是重新加载,当然还要为消息添加一个空的”. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 依赖注入
- centos 安装flash插件
- oracle中in与exist的用法与比较
- c# – 在ListView上添加“加载”-image
- 总结切面编程AOP的注解式开发和XML式开发
- How to call an Oracle Stored Procedure that returns one
- 在Xcode 3.2(Snow Leopard)错误中构建10.5
- IDE用于C/C++,C#,.Net的实时协作
- How to serve AJAX pages (Ember.js, Angular, etc) to Goo
- Flex中的initialize,creationComplete,applicationComplete