fix: add expo-image-picker plugin with iOS camera permissions#9
Open
alex-pythonista wants to merge 2 commits intoASHWIN776:mainfrom
Open
fix: add expo-image-picker plugin with iOS camera permissions#9alex-pythonista wants to merge 2 commits intoASHWIN776:mainfrom
alex-pythonista wants to merge 2 commits intoASHWIN776:mainfrom
Conversation
Fixes ASHWIN776#7 - iOS app crashes when accessing camera due to missing NSCameraUsageDescription in Info.plist. Added expo-image-picker plugin configuration with appropriate permission strings for camera and photo library access, enabling the receipt scanning feature to work properly on iOS. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
Code Review: PR #9OverviewThis PR adds the Analysis✅ Correctness
✅ Code Quality
✅ Conventions
✅ Security
SuggestionsNone - this is a clean, correct fix. VerdictLGTM ✅ The change is minimal, correct, and follows best practices. After merging, remember to run: npx expo prebuild --clean
npx expo run:ios🤖 Reviewed by Claude Code |
Extract image picker logic into utils/imagePicker.ts for reusability. Shows user-friendly alert when camera is unavailable (e.g., iOS Simulator) instead of silently failing. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Contributor
Author
Contributor
Author
Simulation PreviewSimulator.Screen.Recording.-.iPhone.16e.-.2026-01-27.at.00.18.31.mov |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
expo-image-pickerplugin toapp.jsonwith iOS permission stringsFixes #7
Problem
The iOS app crashes immediately when attempting to use the camera in the receipt form component. iOS requires apps to declare usage descriptions for privacy-sensitive features via
NSCameraUsageDescriptionandNSPhotoLibraryUsageDescriptionkeys in Info.plist.Additionally, camera functionality silently fails on iOS Simulator with no user feedback.
Solution
expo-image-pickerplugin configuration toapp.jsonwith appropriate permission messages:Created reusable
utils/imagePicker.tswith:launchCamera()- Camera capture with availability check and permissionslaunchImageLibrary()- Gallery picker with permissionscheckCameraAvailability()- Standalone availability checkRefactored
receipt-form.tsxto use the new utilitiesTest plan
npx expo prebuild --cleanto regenerate native projectsnpx expo run:iosto build and launch on iOS🤖 Generated with Claude Code