You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
755 B

import React from "react";
import { MaterialCommunityIcons } from "@expo/vector-icons";
import {
HeaderButtons,
HeaderButton,
Item,
} from "react-navigation-header-buttons";
const IoniconsHeaderButton = (props) => (
<HeaderButton IconComponent={MaterialCommunityIcons} iconSize={23} {...props} />
);
function HeaderBarMenu(navigation) {
React.useLayoutEffect(() => {
navigation.setOptions({
headerRight: () => (
<HeaderButtons HeaderButtonComponent={IoniconsHeaderButton}>
<Item
title="Sobre"
iconName="information-outline"
onPress={() => navigation.navigate("Abbout")}
/>
</HeaderButtons>
),
});
}, [navigation]);
}
export default HeaderBarMenu;