React Native TouchableOpacity onPress

QA - Test - Errer·2023년 1월 11일
0

TIL

목록 보기
42/52
post-thumbnail

설치!

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,
   >
}
profile
https://dirt-shoe-59d.notion.site/QA-Engineer-a021ababa8b44cb780000fc01eca2a8e

0개의 댓글