rishabhbhatia / react-native-awesome-alerts

Awesome alerts for React Native, works with iOS and Android.
MIT License
525 stars 71 forks source link

Doesn't work when two AwesomeAlert components are declared consecutively (ios only) #81

Open yoosful opened 3 years ago

yoosful commented 3 years ago

When two AwesomeAlert components are declared consecutively, the show property doesn't work properly in ios. As a temporary workaround, I had to wrap each one in a different component.

e.g.

<Container>
  <AwesomeAlert ... />
  <AwesomeAlert ... />
</Container>

workaround.

<Container>
  <SubContainer>
    <AwesomeAlert ... />
  </SubContainer>  
  <SubContainer>
    <AwesomeAlert ... />
  </SubContainer>
</Container>
rishabhbhatia commented 3 years ago

I'll have a look

billnbell commented 2 years ago

status?

rishabhbhatia commented 2 years ago

@billnbell try the workaround by Eric. Feel free to dig deeper and submit a PR.