[BUG]: 마커 tap 이벤트
Closed this issue · 1 comments
jamful-co commented
Is there an existing issue for this?
- I have searched the existing issues
Version of @mj-studio/react-native-naver-map
1.5.10
Version of react-native
18.2.0
What os are you seeing the problem on?
Android, iOS
What device types are you seeing the problem on?
Physcial Device
What architecture types of react native are you seeing the problem on?
Old Architecture(Bridge)
Version of device(android API, iOS OS version, etc...)
No response
Expo App
- I am using Expo
What happened?
const LeafMarker = ({leaf, onTap, isFocused = false}: LeafMarkerProps) => {
const size = isFocused ? 60 : 32;
const color = isFocused ? Colors.primary : Colors.secondary;
const handleTap = () =>{
console.log('handleTap');
onTap(leaf);
}
return (
<NaverMapMarkerOverlay
latitude={leaf.geometry.coordinates[1]}
longitude={leaf.geometry.coordinates[0]}
width={size}
height={size}
caption={{
text: leaf.properties.providerName,
textSize: 11,
color: '#1c2024',
haloColor: '#ffffff',
}}
onTap={handleTap}
>
)
}
위 컴포넌트로 지도에 마커가 정상적으로 랜더링 됩니다. 하지만 가끔씩 tap 이벤트가 발생하지 않는 마커들이 있어요.
Relevant a package.json.
"dependencies": {
"@apollo/client": "^3.10.5",
"@backpackapp-io/react-native-toast": "^0.11.0",
"@expo/vector-icons": "^14.0.0",
"@gorhom/bottom-sheet": "^4",
"@kolking/react-native-rating": "^1.3.3",
"@mj-studio/react-native-naver-map": "^1.5.10",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/datetimepicker": "8.0.1",
"@react-native-kakao/channel": "^2.2.5",
"@react-native-kakao/core": "^2.2.5",
"@react-native-kakao/share": "^2.2.6",
"@react-native-kakao/social": "^2.2.6",
"@react-native-kakao/user": "^2.2.5",
"@react-navigation/drawer": "^6.7.2",
"@react-navigation/native": "^6.0.2",
"@sentry/react-native": "~5.24.3",
"@shopify/flash-list": "1.6.4",
"add": "^2.0.6",
"expo": "~51.0.14",
"expo-apple-authentication": "~6.4.2",
"expo-build-properties": "~0.12.3",
"expo-camera": "~15.0.14",
"expo-clipboard": "~6.0.3",
"expo-constants": "~16.0.2",
"expo-dev-client": "~4.0.26",
"expo-device": "~6.0.2",
"expo-font": "~12.0.7",
"expo-image": "~1.13.0",
"expo-image-picker": "~15.0.7",
"expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.3.1",
"expo-location": "~17.0.1",
"expo-notifications": "~0.28.16",
"expo-router": "~3.5.16",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-system-ui": "~3.0.6",
"expo-updates": "~0.25.22",
"expo-video": "^1.2.3",
"expo-web-browser": "~13.0.3",
"geolib": "^3.3.4",
"graphql": "^16.8.2",
"mixpanel-react-native": "^3.0.5",
"nativewind": "^2.0.11",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.52.0",
"react-native": "0.74.5",
"react-native-appsflyer": "^6.15.1",
"react-native-awesome-gallery": "^0.4.2",
"react-native-calendars": "^1.1306.0",
"react-native-credit-card-input": "^1.0.0",
"react-native-dialog": "^9.3.0",
"react-native-dropdown-picker": "^5.4.6",
"react-native-gesture-handler": "~2.16.1",
"react-native-mask-input": "^1.2.3",
"react-native-pager-view": "6.3.0",
"react-native-reanimated": "~3.10.1",
"react-native-reanimated-carousel": "4.0.0-alpha.12",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-svg": "15.2.0",
"react-native-web": "~0.19.10",
"react-native-webview": "13.8.6",
"rn-range-slider": "^2.2.2",
"rxjs": "^7.8.1",
"styled-components": "^6.1.11",
"supercluster": "^8.0.1",
"yarn": "^1.22.22",
"zustand": "^4.5.2"
},
Relevant log output
No response
Reproducible Sample Repository
없어요
Code of Conduct
- I agree to follow this project's Code of Conduct
pockeysoft commented
요거 해결 되었나요?
저도 같은 문제인데...