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, setShowBack}:any){ return ( {setTitle("Home");setShowBack("")}} to="/" style={{flex: 1}}> {setTitle("Movies");setShowBack("")}} to='/movies' style={{flex: 1}}> {setTitle("Shows");setShowBack("")}} to='/shows' style={{flex: 1}}> {setTitle("Categories");setShowBack("")}} to='/Categories' style={{flex: 1}}> {setTitle("Settings");setShowBack("")}} to='/settings' style={{flex: 1}}> ) } const style = (theme:any) => { return StyleSheet.create({ container: { }, text: { color: theme.text, }, navabar: { marginTop: "auto", flexDirection: 'row', width: '100%', marginBottom: (Platform.OS== 'ios')?20:0, }, navButton: { height: 60, textAlign: 'center', paddingTop: 20, paddingBottom: 10, color: theme.text, backgroundColor:theme.accent, }, }); }