react-native-floating-action icon indicating copy to clipboard operation
react-native-floating-action copied to clipboard

overlay does not fill the whole screen

Open msevestre opened this issue 6 years ago • 6 comments

You can see the behavior in your example. The header bar is not covered by the overlay. Is this on purpose?

msevestre avatar Mar 27 '18 20:03 msevestre

@msevestre this is a correct behavior because the overlay will be on your "scene". Using react-navigation the "scene" be between NavigationBar and TabBar. I think it's not possible to do show the overlay on top of everything.

santomegonzalo avatar Mar 28 '18 08:03 santomegonzalo

Looking at inbox from Google, the overlay covers everything but the toolbar. That would be what I would expect here as well.

What about using width and height of screen? I could give it a try if you agree that this could be a good feature.

msevestre avatar Mar 28 '18 20:03 msevestre

of course, you are more than welcome to try. But still, I think will not work because of how react-native works.
Let me know.

santomegonzalo avatar Mar 29 '18 07:03 santomegonzalo

@msevestre I tried what you mention and will not work. Its a limitation of react-native. On another project I was trying to open a popup from a button, mounting it with position: absolute and everything but the popup was just inside the button.

There is a way to do it and I'm testing it to see how works but I will need to change a lot and could break current implementations. I need to keep investigating and testing it... this is so far what i have

mar-29-2018 10-55-15

but now my buttons are behind the background...

if you have another idea please let me know... otherwise I will keep you posted

santomegonzalo avatar Mar 29 '18 08:03 santomegonzalo

@santomegonzalo Yeah thinking about it a bit more, I understand the problems you were mentioning.

I wonder if something like that could be used. Somehow the alert comes on top of everything and can be declared anywhere in the tree.

msevestre avatar Mar 29 '18 14:03 msevestre

hi, does this problem fixed? I have navigationbar + bottom navigation, so the action view does not cover all => UI seem not good

fukemy avatar Oct 24 '22 12:10 fukemy