diff --git a/components/Navbar.tsx b/components/Navbar.tsx index 6ea293f..20f0e57 100644 --- a/components/Navbar.tsx +++ b/components/Navbar.tsx @@ -2,22 +2,22 @@ import { Link } from "react-router-native"; import { StyleSheet, Text, View, Platform } from 'react-native'; import { MaterialIcons, FontAwesome5, Entypo, Ionicons } from '@expo/vector-icons'; -export default function Navbar({theme, setTitle}:any){ +export default function Navbar({theme, setTitle, setShowBack}:any){ return ( - setTitle("Home")} to="/" style={{flex: 1}}> + {setTitle("Home");setShowBack("")}} to="/" style={{flex: 1}}> - setTitle("Movies")} to='/movies' style={{flex: 1}}> + {setTitle("Movies");setShowBack("")}} to='/movies' style={{flex: 1}}> - setTitle("Shows")} to='/shows' style={{flex: 1}}> + {setTitle("Shows");setShowBack("")}} to='/shows' style={{flex: 1}}> - setTitle("Other")} to='/other' style={{flex: 1}}> + {setTitle("Categories");setShowBack("")}} to='/Categories' style={{flex: 1}}> - setTitle("Settings")} to='/settings' style={{flex: 1}}> + {setTitle("Settings");setShowBack("")}} to='/settings' style={{flex: 1}}>