jeremybarbet / react-native-portalize

The simplest way to render anything on top of the rest.
MIT License
335 stars 22 forks source link

Making other portals above than the others #19

Open aprilmintacpineda opened 3 years ago

aprilmintacpineda commented 3 years ago

If I call <Portal> on multiple components, there's a tendency for some components to be above than the other components, but what if I want to be able to order them, like <Portal priority={1}> the higher the number provided the higher it is on the stack, so that priority={10} is on top of priority={9}.

calz10 commented 2 years ago

hi @aprilmintacpineda , may I ask if you have fixed or any solution regarding this? thanks

aprilmintacpineda commented 2 years ago

hi @aprilmintacpineda , may I ask if you have fixed or any solution regarding this? thanks

Hi, sorry but I didn't have any.

Mursivic commented 2 years ago

Hi @calz10 @aprilmintacpineda @jeremybarbet Any solution yet for this issue?

brugaspar commented 1 year ago

Hi @calz10 @aprilmintacpineda @Mursivic Any solution for this?

sourabhLX commented 9 months ago

Staking Host it self works for me

<Host>  // <-------- H1
<Stack
  screenOptions={{
    headerShown: false,
  }}
/>
</Host>
<Host style={{ position: 'absolute' }}>    / /<-------- H2
<Portal key={1}>
  <Toast config={toastConfig} position="top" />
</Portal>
</Host>
aprilmintacpineda commented 9 months ago

Sad to see that until today this still hasn't been attended to, maybe there's just not enough requests for it. Also it looks like RN-Portalize is not longer maintained.

lukerlv commented 1 month ago

I also encountered the same need. There are too many issues with react native, which is very frustrating. It's really not a mature framework.