Files
hipmi-mobile/components/_ShareComponent/DummyLandscapeImage.tsx
Bagasbanuna02 d437365b5e Donation
Add:
- screens/Donation/
- donation/[id]/

Fix:
- donation/(tabs)/status.tsx
- donation/create-story.tsx
- donation/create.tsx

## No Issue
2025-08-04 11:28:21 +08:00

34 lines
981 B
TypeScript

import { AccentColor } from "@/constants/color-palet";
import DUMMY_IMAGE from "@/constants/dummy-image-value";
import { Image } from "expo-image";
import { StyleSheet } from "react-native";
import ClickableCustom from "../Clickable/ClickableCustom";
import { router } from "expo-router";
export default function DummyLandscapeImage({height, unClickPath}: {height?: number, unClickPath?: boolean}) {
return (
<ClickableCustom
onPress={() => {
if (!unClickPath) {
router.push("/(application)/(image)/preview-image/1");
}
}}
>
<Image source={DUMMY_IMAGE.background} style={[styles.backgroundImage, {height: height || 200}]} />
</ClickableCustom>
);
}
const styles = StyleSheet.create({
backgroundImage: {
width: "100%",
justifyContent: "center",
alignItems: "center",
borderRadius: 6,
overflow: "hidden",
borderWidth: 1,
borderColor: AccentColor.blue,
backgroundColor: "white",
},
});