morenoh149 / react-native-contacts

React Native Contacts
MIT License
1.65k stars 564 forks source link

Android - openContactForm - Getting always "home" instead my value in the label #598

Closed NahuelRobles closed 3 years ago

NahuelRobles commented 3 years ago

Hi, when I add a contact with "openContactForm" on Android, the label is always "Home" on address

          const newTest = {
            emailAddresses: [],
            phoneNumbers: [],
            postalAddresses: [
              {
                label: 'home',
                formattedAddress: 'ASDFASF. ASDFASDF, TEXAS 234SDF3. US',
                street: 'asdfasf',
                city: 'asdfasdf',
                region: 'Texas',
                state: 'Texas',
                postCode: '234sdf3',
                country: 'US',
              },
              {
                label: 'work',
                formattedAddress: '570 ORTIZ DE ROSAS. DNE, PROVINCIA DE BUENOS AIRES B1708. AR',
                street: '570 Ortiz de Rosas',
                city: 'DNE',
                region: 'Provincia de Buenos Aires',
                state: 'Provincia de Buenos Aires',
                postCode: 'B1708',
                country: 'AR',
              },
              {
                label: 'work',
                formattedAddress: '572 ORTIZ DE ROSAS. DNE, PROVINCIA DE BUENOS AIRES B1708. AR',
                street: '572 Ortiz de Rosas',
                city: 'DNE',
                region: 'Provincia de Buenos Aires',
                state: 'Provincia de Buenos Aires',
                postCode: 'B1708',
                country: 'AR',
              },
            ],
            displayName: '! Nahuel',
          };

           Contacts.openContactForm(newTest);