설치!
import { TouchableOpacity } from "react-native";
기능!
onpress
구현!
코드!
export default function Slide({ realtime, imgId }) {
const { navigate } = useNavigation();
<Row
onPress={() =>
navigate('Stacks', {
screen: 'Detail',
params: {
itemId: imgId(realtime.MAIN_IMG),
main_img: realtime.MAIN_IMG,
codename: realtime.CODENAME,
title: realtime.TITLE,
date: realtime.DATE,
target: realtime.USE_TRGT,
target_fee: realtime.USE_FEE,
place: realtime.PLACE,
link: realtime.ORG_LINK,
program: realtime.PROGRAM,
>
}