inaturalist / react-native-inat-camera

React Native package that provides a camera with optional species recognition.
MIT License
10 stars 6 forks source link

onClassifierError not propagating to React Native #31

Closed albullington closed 4 years ago

albullington commented 4 years ago

There's a user running iPhone 7+, iOS 13.2.3 who can see the AR camera but can't see any species suggestions. Digging into this, it looks like the onClassifierError is not actually propagating to React Native. I tested this by removing the lines of code in React Native where we pass the model file and taxonomy file to the native AR camera and finding that there are no onClassifierError events.

Alex's hypothesis is that errors are triggered before the delegate is set up.