not
@not
Reviews Written
28
Average Rating
4.9
Posts
Q&A
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
- 214
Q&A
router.navigate๋์์ด ๋ฌ๋ผ์ ใ
์ ๋ ์ง๋ฌธ์๋๊ณผ ๋๊ฐ์ด ๋์ํ๋๋ฐ ๊ฐ์ ์ค๋ช ์ด๋ ๋ฌ๋ผ์ ํท๊ฐ๋ฆฌ๋ค์
- 0
- 3
- 82
Q&A
isLoaded, gerReference
getReference()๋ง์ผ๋ก๋ ํ๋ก์๊ฐ ์์ฑ๋๊ฒ์ด์ง ์ด๊ธฐํ(target์ ๊ฐ์ฒด๋ฅผ ์ฐธ์กฐ)ํ์ง ์์์ผ๋ฏ๋ก ์ด๊ธฐํ ํ ์ํ๋ ์๋,emf.getPersistenceUnitUtil().isLoaded(refMember)๋ฉ์๋๋ ์ต์ด์ ์์์ฑ์ปจํ ์คํธ์์ ๊ฐ์ ๊ฐ์ ธ์ค๋ฉด ์ค์ ๊ฐ์ฒด๊ฐ ๋ก๋๋ ์ํ์ด๋ฏ๋ก ํญ์ true๋ฐํ,ํ๋ก์์์ ๊ฐ์ ๊ฐ์ ธ์์ ๊ฒฝ์ฐ ์ด๊ธฐํ๊ฐ ์๋์ํ์์๋ false, ์ด๊ธฐํ๊ฐ๋๋ฉด true๋ฅผ ๋ฐํ ์ดํด๊ฐ ๋์์ต๋๋ค. ๊ฐ์ฌํฉ๋๋ค.
- 0
- 2
- 165




