morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.64k stars 560 forks source link

Not able to store multiple phone numbers in same contact #697

Closed rutul089 closed 1 year ago

rutul089 commented 1 year ago

I am trying to store multiple phone numbers in the same contact but I am not able to store the 3 phone numbers. Is there any limitation with the phone numbers?

Used code :

var newPerson = {
      middleName: '',
      displayName: `Display Name`,
      familyName: contactInfo?.last_name,
      givenName: contactInfo?.first_name,
      emailAddresses: [
        {
          label: 'email',
          email: contactInfo?.email,
        },
      ],
      phoneNumbers: [
        {
          label: 'home',
          number: contactInfo?.home,
        },
        {
          label: 'mobile',
          number: contactInfo?.mobile,
        },
        {
          label: 'other',
          number: contactInfo?.work,
        },
      ],
    };

Output : image

github-actions[bot] commented 1 year ago

This issue is stale, please provide more information about the status

morenoh149 commented 1 year ago

yeah we probably don't support multiple numbers. feel free to submit a patch.