Skip to content

Conversation

@amirnissim
Copy link

…rror handling

  • Update ImagePicker handling to support newer expo-image-picker versions (v14+) which return an 'assets' array and 'canceled' property instead of the legacy flat structure.
  • Fixes crash where 'base64' was undefined, causing Google Vision API 'INVALID_ARGUMENT' errors.
  • Add check for 'error' in Google Vision API response to gracefully handle permissions/quota issues instead of unhandled promise rejection.

…rror handling

- Update ImagePicker handling to support newer expo-image-picker versions (v14+) which return an 'assets' array and 'canceled' property instead of the legacy flat structure.
- Fixes crash where 'base64' was undefined, causing Google Vision API 'INVALID_ARGUMENT' errors.
- Add check for 'error' in Google Vision API response to gracefully handle permissions/quota issues instead of unhandled promise rejection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant