react-native-ar / react-native-arkit

React Native binding for iOS ARKit
MIT License
1.72k stars 143 forks source link

How to check if anchor (detection image) is visible? #211

Open radovix opened 3 years ago

radovix commented 3 years ago

Is it possible to check whether detection image is visible or not? I tried to use onAchorRemoved callback but it is never called. I even tried changing the source code so that I could check that in the didUpdateNode method. For some reason, each time I move my device didUpdateNode is called twice - once saying that image is being tracked and once it is not being tracked.

How to modify this behaviour and answer the question from the title?