Not able to determine when form is closed after calling Contacts.presentFormAsync on iOS
See original GitHub issueEnvironment
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
- trigger
Contacts. presentFormAsync(id)
- edit the contact
- 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:
- Created 5 years ago
- Comments:12 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
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?