Open Vimiso opened 1 month ago
Couldn't find version numbers for the following packages in the issue:
@react-navigation/native
@react-navigation/stack
@react-navigation/bottom-tabs
@react-navigation/drawer
@react-navigation/material-top-tabs
react-native-tab-view
Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.
Current behavior
Even when setting custom styles on a header they are still wrapped in a view I need access to.
Expected behavior
In a web environment, simply setting the header to transparent and adjusting the padding isn't sufficient because it places the scroll bar behind the header, resulting in an unpolished appearance. A better solution is to style the outermost view with
position: sticky; top: 0
, which ensures that the header remains fixed while the content scrolls beneath it, keeping the scroll bar visible and on top (similar to Twitter's sticky 'Post' header).In the attached screenshot, you can see that applying custom styles to the outer view achieves the desired effect. Additionally, it shows my attempt to style the inner header using Tailwind CSS classes within a custom component via the header prop - however, this doesn't work as intended. As far as I know, there's no documented way to directly access or style the outer view in this scenario.
Reproduction
https://snack.expo.dev/MhSky72WPBtM0_V48FVET
Platform
Packages
Environment