-
|
i'm wondering what should be the approach to handle header transparent on expo-router Which lead to having to do that on every screen: const headerHeight = useHeaderHeight()
...
<View className="grow px-6 pb-safe-offset-4 gap-4" style={{ paddingTop: headerHeight }} />could be a normal ScrollView or just a KeyboardAwareScrollView. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
AFAIK, the navigation header is not a native component unless it’s created with Implementing it would be challenging. |
Beta Was this translation helpful? Give feedback.
-
|
Like I've already mentioned multiple times - you can create your own utilities and inject anything there using @utility my-custom-utility {
padding-top: var(--my-magic-injected-variable);
}Uniwind.updateCSSVariables({
'--my-magic-injected-variable': headerHeight
}) |
Beta Was this translation helpful? Give feedback.
Like I've already mentioned multiple times - you can create your own utilities and inject anything there using
Uniwind.updateCSSVariablesAPI. We don't plan on adding any new dependency