inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

개발자 취업 포기님의 게시글

개발자 취업 포기 개발자 취업 포기

@not

수강평 작성수
28
평균평점
4.9

게시글 3

질문&답변

13강 AnimatedTabBarButton type 질문

2026년 2월 26일 기준으로 PlatformPressable 을 사용하면 되네요 애니메이션 기반의 Pressable 컴포넌트라고 합니다. import { Ionicons } from "@expo/vector-icons"; import { type BottomTabBarButtonProps } from "@react-navigation/bottom-tabs"; import { PlatformPressable } from "@react-navigation/elements"; import { Tabs, useRouter } from "expo-router"; import { useRef, useState } from "react"; import { Animated, Modal, Text, TouchableOpacity, View, } from "react-native"; const AnimatedTabBarButton = ({ children, onPress, style, ...restProps }: BottomTabBarButtonProps) => { const scaleValue = useRef(new Animated.Value(1)).current; const handlePressOut = () => { Animated.sequence([ Animated.spring(scaleValue, { toValue: 1.2, useNativeDriver: true, speed: 200, }), Animated.spring(scaleValue, { toValue: 1, useNativeDriver: true, speed: 200, }), ]).start(); }; // const { ref, ...pressableProps } = restProps; return ( {children} ); };

좋아요수
5
댓글수
5
조회수
268

질문&답변

router.navigate동작이 달라요 ㅠ

저도 질문자님과 똑같이 동작하는데 강의 설명이랑 달라서 헷갈리네요

좋아요수
0
댓글수
3
조회수
127

질문&답변

isLoaded, gerReference

getReference()만으로는 프록시가 생성된것이지 초기화(target에 객체를 참조)하지 않았으므로 초기화 한 상태는 아님, emf.getPersistenceUnitUtil().isLoaded(refMember) 메소드는 최초에 영속성컨텍스트에서 값을 가져오면 실제 객체가 로드된 상태이므로 항상 true반환, 프록시에서 값을 가져왔을 경우 초기화가 안된상태에서는 false, 초기화가되면 true를 반환 이해가 되었습니다. 감사합니다.

좋아요수
0
댓글수
2
조회수
185