Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack Navigation에서 Navigate후 네이버 맵 초기화 및 marker 사라지는 문제 #117

Open
ilsong opened this issue Aug 20, 2021 · 5 comments

Comments

@ilsong
Copy link

ilsong commented Aug 20, 2021

Version of react-native-naver-map libraries

v0.0.66

Version of react-native

v0.64.1

Platforms you faced the error (IOS or Android or both?)

Android

Expected behavior

Stack navigation navigate후 다시 돌아오면 Marker가 사라지지 않아야 합니다.

Actual behavior

Stack navigation navigate후 다시 돌아오면 Marker가 사라집니다.

Component A : 네이버 맵 component
Component B : 빈 component

Component A->B->A로 navigate했을때 A가 unmount 되지 않았는데, A로 돌아올 때 네이버 맵은 reload되어 기존의 marker들이 사라지는것 같습니다.
원래동작이 이래서 Enhancement로 이슈를 올려야 하는지, 오류인지 잘 모르겠지만 해결책이 있을지 해서 이슈 올립니다.

Tested environment (Emulator? Real Device?)

SM-N960N (노트9)
Emulator

Screen Shot

Component A
Screenshot_1629473538
Component B
Screenshot_1629473543
Component A (back버튼 누르고)
Screenshot_1629473547

@dkahdwk
Copy link

dkahdwk commented Dec 29, 2021

@leetaeheon123 네비게이션에서 go.back() 했을때, 다시 지도를 다시
렌더링하는 방식으로 해결해야할 것 같아요. 개발자님 이슈대응이 전혀 없으셔서
저는 그렇게 해결했습니다.

@dkahdwk
Copy link

dkahdwk commented Dec 30, 2021

@leetaeheon123 정정할게요.
useTextureView={true}
옵션주시면 해결됩니다~

@dkahdwk
Copy link

dkahdwk commented Dec 30, 2021

@leetaeheon123 NaverMapView에 추가하시면 됩니다

@Arthur-Noh
Copy link

Arthur-Noh commented Nov 10, 2022

오래된 이슈인데 최근에 이 방법으로 전 해결되서 코멘드 남깁니다.
안드로이드에서 Marker의 caption을 넣지 않을 경우 navigation을 해도 마커가 사라지는 에러가 발생하지 않더라고요.

@leetaeheon123
Copy link

leetaeheon123 commented Nov 10, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants