tambahan
This commit is contained in:
17
components/buttonHeader.tsx
Normal file
17
components/buttonHeader.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
import Styles from "@/constants/Styles";
|
||||
import { TouchableWithoutFeedback, View } from "react-native";
|
||||
|
||||
type PropsBtnHeader = {
|
||||
onPress?: () => void;
|
||||
item: React.ReactNode;
|
||||
};
|
||||
|
||||
export function ButtonHeader({ onPress, item }: PropsBtnHeader) {
|
||||
return (
|
||||
<TouchableWithoutFeedback onPress={onPress}>
|
||||
<View style={[Styles.btnIconHeader]}>
|
||||
{item}
|
||||
</View>
|
||||
</TouchableWithoutFeedback>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user