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