ui icon indicating copy to clipboard operation
ui copied to clipboard

CardStack renders NavigationBar at bottom in latest master

Open Swizec opened this issue 6 years ago • 2 comments

When I use @shoutem/ui from Github, the NavigationBar renders at the bottom of the screen. I'm expecting it to render at the top.

If I switch to tag 0.19.0, then it renders correctly.

Switching @shoutem/ui versions is the only change. My app code is the same.

Swizec avatar Jul 30 '17 23:07 Swizec

Has this been resolved? Seeing it in 0.22.4

ShaunSpringer avatar Jan 05 '18 21:01 ShaunSpringer

Did some digging in the code

https://github.com/shoutem/ui/blame/30746cc41775f3c9c72c8f38a0cc4ba0fe9c3efd/navigation/CardStack.js#L166

At first glance it looks like inlineNavigationBar has to be set explicitly to false in order for the navbar to appear on top.

I assume the order of the elements in that code snippet causes the incorrect ordering of the navbar and rendered scene

ShaunSpringer avatar Jan 06 '18 00:01 ShaunSpringer