-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[expo-contacts] [iOS] Passing an Image to Contacts.presentFormAsync
crashes Expo Go
#25128
Comments
Thank you for filing this issue! |
I believe the intent here was that you pass in a local image URI, however that is missing from the documentation. You can use |
Thanks for the reply! I implemented those changes on my repro repository in this commit, and it fixed the issue in the simulator / Expo Go: I also opened #25150 in case that will help avoid this crash in the future. Feel free to close this issue if it's not an actual "bug"! |
<!-- disable:changelog-checks --> # Why Helps users avoid crash behavior outlined in #25128 # How Updated the TypeScript JS Doc string using [these guidelines](https://github.com/expo/expo/blob/sdk-49/CONTRIBUTING.md#-updating-documentation). # Test Plan ### Before <img width="1013" alt="Screenshot 2023-11-01 at 12 05 48 PM" src="https://github.com/expo/expo/assets/13444851/7405185d-faf5-425f-9416-5bde872034e8"> ### After <img width="995" alt="Screenshot 2023-11-01 at 11 55 18 AM" src="https://github.com/expo/expo/assets/13444851/b11fe9ec-da21-415c-b1e9-f19282a4a993"> # Checklist - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [x] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [x] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
<!-- disable:changelog-checks --> # Why Helps users avoid crash behavior outlined in expo#25128 # How Updated the TypeScript JS Doc string using [these guidelines](https://github.com/expo/expo/blob/sdk-49/CONTRIBUTING.md#-updating-documentation). # Test Plan ### Before <img width="1013" alt="Screenshot 2023-11-01 at 12 05 48 PM" src="https://github.com/expo/expo/assets/13444851/7405185d-faf5-425f-9416-5bde872034e8"> ### After <img width="995" alt="Screenshot 2023-11-01 at 11 55 18 AM" src="https://github.com/expo/expo/assets/13444851/b11fe9ec-da21-415c-b1e9-f19282a4a993"> # Checklist - [x] Documentation is up to date to reflect these changes (eg: https://docs.expo.dev and README.md). - [x] Conforms with the [Documentation Writing Style Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md) - [x] This diff will work correctly for `npx expo prebuild` & EAS Build (eg: updated a module plugin).
Minimal reproducible example
https://github.com/hueter/expo-contacts-image-bug
Summary
Hello!
In my app I'm trying to preload a contact's image from a URI provided, but it seems to crash everything on iOS.
Crash Video
Simulator.Screen.Recording.-.iPhone.15.Pro.-.2023-10-30.at.20.49.39.mp4
Repro
In my minimal reproducible example, it's this line that breaks:
https://github.com/hueter/expo-contacts-image-bug/blob/d80fa42892849957105e11afc00183a6205a9f7b/App.tsx#L17-L19
It also seems to break with base64-encoded images.
Console / Crash Report
This shows up in the console:
so I think it's this line that is having problems:
expo/packages/expo-contacts/ios/EXContacts/EXContacts.m
Line 829 in 8156a6f
Here is the crash report (not sure if helpful 😅 )
Environment
The text was updated successfully, but these errors were encountered: