|
|
|
@ -48,9 +48,9 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
<View |
|
|
|
|
style={[tw( |
|
|
|
|
"w-full flex flex-row-reverse justify-between h-16 bg-white items-center px-0" |
|
|
|
|
), {backgroundColor : headerOptions.backgroundColor ? headerOptions.backgroundColor : 'white'}]} |
|
|
|
|
), {backgroundColor : headerOptions?.backgroundColor ? headerOptions?.backgroundColor : 'white'}]} |
|
|
|
|
> |
|
|
|
|
{!headerOptions.title && headerOptions.back ? ( |
|
|
|
|
{!headerOptions?.title && headerOptions?.back ? ( |
|
|
|
|
<Ionicons |
|
|
|
|
name="arrow-forward" |
|
|
|
|
style={tw("mr-2")} |
|
|
|
@ -59,7 +59,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
onPress={() => navigation.goBack()} |
|
|
|
|
/> |
|
|
|
|
) : null} |
|
|
|
|
{headerOptions.title ? ( |
|
|
|
|
{headerOptions?.title ? ( |
|
|
|
|
<Text |
|
|
|
|
style={{ |
|
|
|
|
fontFamily: "bold", |
|
|
|
@ -71,7 +71,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
{headerOptions?.title} |
|
|
|
|
</Text> |
|
|
|
|
) : null} |
|
|
|
|
{headerOptions.hamburgerMenu && ( |
|
|
|
|
{headerOptions?.hamburgerMenu && ( |
|
|
|
|
<Pressable style={tw("relative mr-4")} onPress={() => setBoxPosition()}> |
|
|
|
|
<Image |
|
|
|
|
source={hamburgerLightIcon} |
|
|
|
@ -87,7 +87,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
</Pressable> |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
{headerOptions.logo && ( |
|
|
|
|
{headerOptions?.logo && ( |
|
|
|
|
<Pressable |
|
|
|
|
onPress={() => navigation.navigate("Home")} |
|
|
|
|
style={tw("absolute right-1/2 top-1/2")} |
|
|
|
@ -106,7 +106,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
)} |
|
|
|
|
|
|
|
|
|
<View style={tw("flex flex-row items-center ml-4")}> |
|
|
|
|
{headerOptions.back && headerOptions.title ? ( |
|
|
|
|
{headerOptions?.back && headerOptions?.title ? ( |
|
|
|
|
<Ionicons |
|
|
|
|
name="arrow-back" |
|
|
|
|
style={tw("mr-2")} |
|
|
|
@ -115,13 +115,13 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
onPress={() => navigation.goBack()} |
|
|
|
|
/> |
|
|
|
|
) : null} |
|
|
|
|
{headerOptions.qr && ( |
|
|
|
|
{headerOptions?.qr && ( |
|
|
|
|
<> |
|
|
|
|
<Button icon={qrLightIcon} route={"QR"} /> |
|
|
|
|
<Button icon={arLightIcon} route={"ar"} /> |
|
|
|
|
</> |
|
|
|
|
)} |
|
|
|
|
{headerOptions.bookmark && ( |
|
|
|
|
{headerOptions?.bookmark && ( |
|
|
|
|
<Ionicons |
|
|
|
|
name="bookmark-outline" |
|
|
|
|
style={tw("mr-2")} |
|
|
|
@ -130,7 +130,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { |
|
|
|
|
onPress={() => navigation.goBack()} |
|
|
|
|
/> |
|
|
|
|
)} |
|
|
|
|
{headerOptions.menu && ( |
|
|
|
|
{headerOptions?.menu && ( |
|
|
|
|
<Entypo name="dots-three-vertical" size={24} color="#196EC0" /> |
|
|
|
|
)} |
|
|
|
|
</View> |
|
|
|
|