Skip to content
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] presentContactPickerAsync gives no result on backpress Android device #29191

Closed
jp1987 opened this issue May 29, 2024 · 1 comment · Fixed by #29202
Closed
Assignees
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@jp1987
Copy link
Contributor

jp1987 commented May 29, 2024

Minimal reproducible example

https://github.com/jp1987/expo-contact-issue-backpress

What platform(s) does this occur on?

Android

Did you reproduce this issue in a development build?

Yes

Summary

When using Contacts.presentContactPickerAsync to display a picker, pressing the back button on a physical Android device dismisses the contact picker, but the promise never resolves. I have 2 videos, one of my console output, one of my device.

  • The first dismiss is done using the back arrow icon in the picker itself, the promise resolves to null
  • The second dismiss is done using the Android back button, the promise never resolves

Using the back button on an Android simulator works.

Screen_Recording_20240529_133346_Contacts.mp4
Screen.Recording.2024-05-29.at.13.33.28.mov

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.12.1 - /usr/local/bin/node
Yarn: 1.22.21 - /usr/local/bin/yarn
npm: 9.1.2 - /usr/local/bin/npm
Watchman: 2023.09.04.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.12.1 - /Users/jesperpaardekooper/.gem/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.2, iOS 17.2, macOS 14.2, tvOS 17.2, visionOS 1.0, watchOS 10.2
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10671973
Xcode: 15.2/15C500b - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.8 => 51.0.8
react: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
npmGlobalPackages:
eas-cli: 9.0.7
Expo Workflow: managed

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check for issues with metro config
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

@jp1987 jp1987 added the needs validation Issue needs to be validated label May 29, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels May 29, 2024
@jp1987
Copy link
Contributor Author

jp1987 commented May 29, 2024

Feels sort of similar to #28951

Other users have reported this can (randomly) happen when pressing the close icon on the top left and/or anywhere in the screen as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants