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

Enhance to send back array of phones and emails (iOS only) #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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: "[email protected]",
  }],
  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