【发布时间】:2021-03-18 15:44:56
【问题描述】:
就我而言,我在渲染部分使用alert component,而我正在执行应用程序,因为multiple time rendering 我的警报也调用了两次或更多次。当警报已经显示时,我必须 prevent 它。
我的代码在这里:
return (
{ alert rendering condition (
<AlertPack
title= ""
subTitle=""
alertButtons={[
{
text: "ok",
onPress: () => {....}
},
{
text: "cancel",
onPress: () => {....},
},
]}
/>
)}
)
【问题讨论】:
标签: android ios typescript react-native