【发布时间】:2018-05-14 09:35:55
【问题描述】:
由于未知原因,我的 Alert.alert 拒绝工作。我基本上是在重用它之前工作的代码。得到错误:
异常 NSArrayl 长度;无法识别的选择器发送到实例 在 targer 上调用 alertWithArgs 时抛出 0x170623440 带有参数的警报管理器。
谢谢
acceptFriendRequest(friendsName){
Alert.alert(
friendsName + ' wants to add you',
[
{text: 'Decline', onPress: () => console.log('Cancel Pressed'), style: 'cancel',
},
{text: 'Accept', onPress: () => this.confirmFriendRequest(this), style: 'accept'},
],
)
}
【问题讨论】:
标签: javascript reactjs react-native