Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How to prevent multiple alert rendering using react native?

$
0
0

In my case, I am using alert component in render part, while I am executing app due to multiple time rendering my alert also calling twice and moretime. I have to prevent it, when alert is already displaying.

My Code Here:

return (          { alert rendering condition (<AlertPack          title= ""          subTitle=""          alertButtons={[            {              text: "ok",              onPress: () => {....}            },            {              text: "cancel",              onPress: () => {....},            },          ]}         />      )})

Viewing all articles
Browse latest Browse all 6287

Trending Articles