Add: - lib/dummy-data/donasi - donation/(tabs)/ - donation/create-story.tsx Fix: - app/(application)/(user)/_layout.tsx - app/(application)/(user)/crowdfunding/index.tsx - app/(application)/(user)/donation/create.tsx - screens/Authentication/LoginView.tsx ## No Issue
32 lines
905 B
TypeScript
32 lines
905 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}: {height?: number}) {
|
|
return (
|
|
<ClickableCustom
|
|
onPress={() => {
|
|
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",
|
|
},
|
|
});
|