Supporting Multiple Modals in React Native: A New Approach

<p><em>This article was co-authored by Lucas Diez de Medina and Rui Lu, members of the Whitespectre React Native team.</em></p> <p>During an investigation for an app build, we noticed that the current React Native standard modal implementation is unable to manage multiple modals presented at the same time. Popular third-party libraries out there didn&rsquo;t work for us either, as they presented a similar limitation. And the more complex your React Native app, the more limitations you run into. What&rsquo;s worse, errors can occur unnoticed.</p> <p>So we decided to come up with our own simple approach and launch our rn-modal-presenter library, which allows you to present multiple modals on top of your app&rsquo;s content. Read on to learn about our findings and how to use our library for your own React Native project.</p> <p>In this article we&rsquo;ll cover:</p> <ul> <li>Limitations of third-party modal libraries</li> <li>Alternatives tested</li> <li>Our solution: rn-modal-presenter library</li> <li>How to implement the rn-modal-presenter library</li> </ul> <p><a href="https://medium.com/whitespectre/supporting-multiple-modals-in-react-native-a-new-approach-a6a4f4ff0339">Click Here</a></p> <p>&nbsp;</p>