diff --git a/navigation/index.js b/navigation/index.js index 1174a1d..ac6a331 100644 --- a/navigation/index.js +++ b/navigation/index.js @@ -196,6 +196,7 @@ const Navigation = ({}) => { + ); diff --git a/src/assets/video.mp4 b/src/assets/video.mp4 new file mode 100644 index 0000000..fd6954b Binary files /dev/null and b/src/assets/video.mp4 differ diff --git a/src/components/Navbar.js b/src/components/Navbar.js index 83caa67..624e4f0 100644 --- a/src/components/Navbar.js +++ b/src/components/Navbar.js @@ -48,9 +48,9 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { - {!headerOptions.title && headerOptions.back ? ( + {!headerOptions?.title && headerOptions?.back ? ( { onPress={() => navigation.goBack()} /> ) : null} - {headerOptions.title ? ( + {headerOptions?.title ? ( { {headerOptions?.title} ) : null} - {headerOptions.hamburgerMenu && ( + {headerOptions?.hamburgerMenu && ( setBoxPosition()}> { )} - {headerOptions.logo && ( + {headerOptions?.logo && ( navigation.navigate("Home")} style={tw("absolute right-1/2 top-1/2")} @@ -106,7 +106,7 @@ const Navbar = ({ notification, setBoxPosition, headerOptions }) => { )} - {headerOptions.back && headerOptions.title ? ( + {headerOptions?.back && headerOptions?.title ? ( { onPress={() => navigation.goBack()} /> ) : null} - {headerOptions.qr && ( + {headerOptions?.qr && ( <>