inaturalist/react-native-inat-camera

Tap to focus with white box

Closed this issue · 2 comments

This is related to issue #16.

  • Tapping on the image tries to focus the camera on that part of the image

On iOS, Alex implemented tap to focus so there is a white box that appears when the user taps. This helps clarify to the user where the camera is focusing. We should implement this on Android as well for feature parity.

@budowski I'm getting this build error when I try to upgrade to the latest commit:

Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Android resource linking failed
  /Users/amanda/Desktop/Seek/node_modules/react-native-inat-camera/android/build/intermediates/packaged_res/debug/layout/fragment_camera2_basic.xml:13: AAPT: error: resource drawable/focus_area (aka org.inaturalist.seek:drawable/focus_area) not found.

  error: failed linking file resources.

I tried all the usual troubleshooting tricks of clearing the watchman cache, npm start cache, reinstalling node modules, cleaning the android build folder, and deleting the android build folder, but I couldn't get the app to build with this commit.

I was able to downgrade to the previous commit and am able to build with no problems.

My bad!! I didn't git commit a new XML resource file that was created for this implementation.
Now it should work.