Expo Contacts - presentFormAsync, getting an ID after Contact is created

  1. SDK Version: 40
  2. Platforms(Android/iOS/web/all): all

If we use the presentFormAsync function passing a Contact Object, we let the native UI handle creating the new Contact (which is great!), however, if the user creates a new contact through that UI, or uses the data in the Contact Object to update an existing contact, the RN App does not receive any information about it. You seemingly don’t get the ID of the Contact ID that was created or modified. Is there a way the RN App could get that that I’m missing?

In my particular use case I’m trying to let the user create a new contact based off of a phone number. I use the phone number with presentFormAsync to let the user do what it needs. However, the way I see it, in order to get the new ID I would have to then:

  • Get all Contacts
  • Try to find a Contact that has the phone number that I provided from the app

Is that correct? There’s no way to find a Contact using the Phone Number either, right?