问题描述
我正在使用ref来显示自定义警报,但是我收到了有关不推荐使用的警告,因此如何使用ref或对其进行任何替换?
<MyAlert ref="alert" />
this.refs.alert.open(
errorBody,[
{
text: pbtn,onPress: () => {
this._home_call()
}
},{ text: nbtn,onPress: () => { } }
],{
type: 'alert',cancelable: false,},);
反应版本:16.13.1
本机版本:0.63.2
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)