react-native-arkit
react-native-arkit copied to clipboard
How to check if anchor (detection image) is visible?
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?