react-native-naver-map icon indicating copy to clipboard operation
react-native-naver-map copied to clipboard

showsMyLocationButton 사용시 콜백함수 등록

Open json91-dev opened this issue 3 years ago • 1 comments

Version of react-native-naver-map libraries

0.0.52

Version of react-native

0.61.5

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

Both

=============================================

showsMyLocationButton을 사용하고 있는데 Doucment나 내용이 조금 부족해서 사용하는데 애를 먹고 있습니다.

제가 하고싶은 작업은, showsMyLocation 버튼을 이용하여 현재 위치를 얻어온 시점에 특정 작업을 수행하고 싶습니다.

예를 들어 showMyLocation 버튼을 눌러서 내 위치를 얻어온 뒤에 Circle을 현재 위치 기준으로 그린다던지 하는 작업을 하고 싶은데요,

react-native-map에서는 showsMyLocationButton에 대해서 버튼을 사용할지 말지에 대한 기능만 있고 실제로 Callback함수등을 등록하는 방법은 찾아볼수가 없어서 해당 기능 구현에 어려움이 있습니다.

showMyLocations버튼의 작업이 끝난뒤에 Callback함수를 등록할 방법이 있을까요?

또는 Callback함수가 아니더라도 showMyLocations버튼에 onPress 버튼 이벤트라도 줄수 있는 방법이 있을지 궁금합니다 ㅠㅠ

json91-dev avatar Aug 22 '21 20:08 json91-dev

그 ref로 등록하셔서 이용하시면 될것같습니다

lazyflog avatar Mar 29 '22 01:03 lazyflog