darrylsyms / fretwise-app-private

0 stars 0 forks source link

When the 'setBottomTabBar' hook is used, screens do not have enough bottomMargin so content becomes hidden #22

Closed darrylsyms closed 2 years ago

darrylsyms commented 2 years ago

When using the navigationApi.setBottomTabBar hook, the bottom area of screens is covered/hidden by the tab bar.

If I use the navigationApi.setScreensWithoutTabBar hook on named screens, those screens will be fine because they no longer depend on the <BottomTabBar/> position.

We’ve established that it’s necessary to wrap the <BottomTabBar> component in a <BlurView> on iOS, to stop the grey box appearing above the tabbar. However the BlurView causes another problem as shown in the photos attached.

It's clear that the content-end is attached to the top of the grey box mentioned. The grey box is smaller than the BottomTabBar, which is why the content becomes hidden beneath the tabbar.

1ziUme6z80yQ0rK61fDLGPuCSqPYxiYuyw

I’ve experimented with the BlurView styling and it’s a step in the right direction, but I haven’t quite figured out how to solve the content position issue. Here’s what I’ve tried…

I've found no combination of styles that fix this problem. Please find my code here, line 123 is the BlurView code: https://pastebin.com/raw/USJhs5jk

IMG_0905624C5D17-1

Capture 2022-05-13 at 13 21 36

It appears that the grey box does not respect the added height of the iOS home indicator...

Capture 2022-05-13 at 14 46 28

darrylsyms commented 2 years ago

Fixed with latest 1.6.2 setBottomTabBar hook.