fix: update content view class name in SafeNavigationScrollView usage
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { useTypeScriptHappyCallback } from "@follow/hooks"
|
||||
import { cn } from "@follow/utils"
|
||||
import { useSetAtom, useStore } from "jotai"
|
||||
import type { PropsWithChildren } from "react"
|
||||
import { use, useImperativeHandle, useLayoutEffect, useRef, useState } from "react"
|
||||
@@ -134,7 +135,7 @@ export const SafeNavigationScrollView = ({
|
||||
{...props}
|
||||
>
|
||||
<View style={{ height: headerHeight - (withTopInset ? insets.top : 0) }} />
|
||||
<View style={contentViewStyle} className={contentViewClassName}>
|
||||
<View style={contentViewStyle} className={cn("flex-1", contentViewClassName)}>
|
||||
{children}
|
||||
</View>
|
||||
{ScrollViewBottom}
|
||||
|
||||
@@ -131,7 +131,6 @@ export const GeneralScreen: NavigationControllerView = () => {
|
||||
return (
|
||||
<SafeNavigationScrollView
|
||||
className="bg-system-grouped-background"
|
||||
contentViewClassName="flex-1"
|
||||
Header={<NavigationBlurEffectHeaderView title={t("titles.general")} />}
|
||||
>
|
||||
{/* Language */}
|
||||
|
||||
Reference in New Issue
Block a user