17 lines
432 B
TypeScript
17 lines
432 B
TypeScript
import Styles from "@/constants/Styles";
|
|
import { Pressable, Text, TouchableWithoutFeedback, View } from "react-native";
|
|
|
|
type PropsBtnHeader = {
|
|
onPress: () => void;
|
|
item: React.ReactNode;
|
|
};
|
|
|
|
export function ButtonHeader({ onPress, item }: PropsBtnHeader) {
|
|
return (
|
|
<Pressable onPress={() => {onPress()}}>
|
|
<View style={[Styles.btnIconHeader]}>
|
|
{item}
|
|
</View>
|
|
</Pressable>
|
|
)
|
|
} |