question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not able to determine when form is closed after calling Contacts.presentFormAsync on iOS

See original GitHub issue

Environment

Expo CLI 2.11.7 environment info: System: OS: macOS 10.14.3 Shell: 5.3 - /bin/zsh Binaries: Node: 8.11.1 - /usr/local/bin/node Yarn: 1.13.0 - ~/.yarn/bin/yarn npm: 6.7.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman IDEs: Android Studio: 3.3 AI-182.5107.16.33.5199772 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: expo: ^32.0.0 => 32.0.2 react: ^16.5.0 => 16.7.0 react-native: https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz => 0.57.1 npmGlobalPackages: expo-cli: 2.11.7

target: iOS on simulator

Steps to Reproduce

  1. trigger Contacts. presentFormAsync(id)
  2. edit the contact
  3. finish the editing

Expected Behavior

on Android, it is triggering the update of the AppState, then if I update my contact list based on the phonebook, I got my contact list updated every time I change a contact thanks to presentFormAsync. but not on iOS

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
arnaudambrocommented, Nov 14, 2019

That’s actually really something I want to do, because expo has been a great tool to me. I’ll do as soon as I can

2reactions
brentvatnecommented, Mar 12, 2019

it does sound like a reasonable expectation to be able to receive a signal somehow that the editing has completed. i looked into it and was hopeful that the promise would resolve from presentFormAsync upon closing the modal, but it actually just resolves once it has opened.

a workaround for this at the moment is to poll for changes to the contact after you open the form - certainly not ideal as you’d probably need to do a deep comparison on all fields. ideally, i think, we would want presentFormAsync to resolve the promise it returns upon closing the modal. are you interested in opening a pull request for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contacts being there but not showing up. - Apple Community
So far the only workaround I've found for this is to immediately call them after entering. That makes them appear. The ones entered...
Read more >
Contacts - Expo Documentation
Mutate the information of an existing contact. Due to an iOS bug, nonGregorianBirthday field cannot be modified. On Android, you can use presentFormAsync ......
Read more >
c# - Detect reason for form closing - Stack Overflow
If you call Application.Exit from click handler when close reason will be CloseReason.ApplicationExitCall and if(UserClosing) condition will be ...
Read more >
Saved Contacts Name Not Showing Up on iPhone in iOS 14.4 ...
How to fix Contacts not showing up on iPhone, Saved Contacts not showing up on iPhone when calling in iOS 14.4, iPhone contacts...
Read more >
[FIXED!] iPhone Contacts Not Showing Up? 4 ... - YouTube
Some users complained that they couldn't find the contacts on their iPhone after udpating to iOS 14/15, the contacts just not showing up....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found