morenoh149 / react-native-contacts

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

Update contact thumbnail #667

Closed mustapha-ghlissi closed 2 years ago

mustapha-ghlissi commented 2 years ago

HI community !

I'm working on a custom contacts app where I have a form to set some infos and take a photo using the camera, But when trying to save the infos, only thumbnail isn't saved !!!!

Anyone can help me ?

Here is my code to take a picture via camera and set the contact infos:

ImagePicker.openCamera({
      width: 200,
      height: 200,
      cropping: false
    }).then(({path}) => {
      setContactObj({
        ...contactObj,
        thumbnailPath: path,
        hasThumbnail: true
      });
    });

    Contacts.updateContact(contactObj).then(() => {
      Alert.alert('Success', 'Contact infos updated successfully !');
    })
github-actions[bot] commented 2 years ago

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

adenta commented 2 years ago

@mustapha-ghlissi were you able to figure this out? Is this even possible? @morenoh149

morenoh149 commented 2 years ago

@adenta not sure I've never used the thumbnails