Skip to content

Conversation

@johnckendall
Copy link

Update to return a list of phones and emails with their localized labels
Update to return the individual elements of the contact name

Update to return a list of phones and emails with their localized labels
@johnckendall johnckendall changed the title Enhance to send back array of phones and emails Enhance to send back array of phones and emails (iOS only) Oct 10, 2016
@kiki-le-singe
Copy link

Any news about this PR?

@esutton
Copy link

esutton commented Mar 20, 2017

Perhaps consider:

  1. Add a configurable query fields option to configure the contact data dictionary.
  2. Field names match react-native-contacts fields contact field names.
    I assume these iOS field names may need translation to the Android equivalent.

https://github.com/rt2zz/react-native-contacts

{
  recordID: '6b2237ee0df85980',
  company: "",
  emailAddresses: [{
    label: "work",
    email: "carl-jung@example.com",
  }],
  familyName: "Jung",
  givenName: "Carl",
  jobTitle: "",
  middleName: "",
  phoneNumbers: [{
    label: "mobile",
    number: "(555) 555-5555",
  }],
  thumbnailPath: 'content://com.android.contacts/display_photo/3',
  postalAddresses: 
    [ 
      {
        postCode: 'Postcooode',
        city: 'City',
        neighborhood: 'neighborhood',
        street: 'Home Street',
        formattedAddress: 'Home Street\nneighborhood\nCity Postcooode',
        label: 'work' 
      }
    ]
}

@preethypt
Copy link

preethypt commented Jun 25, 2020

I need this PR to merge with the master. Kindly merge this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants