导航栏引用公共组件
This commit is contained in:
@@ -9,6 +9,7 @@ interface BackNavbarProps {
|
||||
title?: string;
|
||||
showAvatar?: boolean;
|
||||
showBackButton?: boolean;
|
||||
backgroundColor?: string;
|
||||
onBack?: () => void;
|
||||
className?: string;
|
||||
}
|
||||
@@ -17,6 +18,7 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
|
||||
title = '消息',
|
||||
showAvatar = true,
|
||||
showBackButton = false,
|
||||
backgroundColor,
|
||||
onBack,
|
||||
className = ''
|
||||
}) => {
|
||||
@@ -36,7 +38,8 @@ const BackNavbar: React.FC<BackNavbarProps> = ({
|
||||
className={`back-navbar ${className}`}
|
||||
style={{
|
||||
paddingTop: `${statusBarHeight}px`,
|
||||
height: `${totalHeight}px`
|
||||
height: `${totalHeight}px`,
|
||||
backgroundColor: backgroundColor || "#ffffff"
|
||||
}}
|
||||
>
|
||||
<View
|
||||
|
||||
Reference in New Issue
Block a user