HomeiOS Developmentios - Is there a view/element that goes above all content material...

ios – Is there a view/element that goes above all content material in React Native?


Is there a view/element/something that can be utilized in a single place in a react native app that may be positioned above all of the content material – I would like it for toast element. I attempted utilizing Portals, Root Siblings, Modals and so on. however nothing goes above the display that has presentation: “modal” on iOS.

I particularly need to hold presentation: “modal” for some screens and I would like toast messages to be out there there. I do know I may render couple of cases of toast element together with these screens with presentation: “modal”, however I’m on the lookout for one thing world – that may be above all of the content material it doesn’t matter what.

I do know it’s attainable as a result of I’ve seen apps like WhatsApp have it (the toast message is actually floating above every little thing as a result of irrespective of the place you go it persists there, even for those who go on screens with presentation: “modal). After all they use native views like UIWindow with windowLevel (.alert or above) however I used to be questioning does something like that exist in react native/expo ecosystem?

If not, how come has nobody come to an thought to create an expo module for instance that exposes that overlaying view – it will be helpful for toasts, modals, sheets, portals and so on… (I used to be fascinated about making an attempt to try this myself, however Im undecided how doable that may be for me contemplating my ability degree and the quantity of free time)

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments