morenoh149 / react-native-contacts

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

Update birthday doesn't work. Without any error #584

Closed mortezaataiy closed 3 years ago

mortezaataiy commented 3 years ago

Update birthday doesn't work. Without any error. Other fields change properly. In Android 10 API 29

Write:

{"birthday": {"day": 10, "month": 1, "year": 2021}, "company": "", "department": "", "displayName": "sdf wer", "emailAddresses": [{"email": "vcsdf@sdf.sdf", "id": "43", "label": "home"}, {"email": "r24@d.sdf", "id": "44", "label": "work"}], "familyName": "wer", "givenName": "sdf", "hasThumbnail": false, "imAddresses": [], "jobTitle": "", "middleName": "", "note": "", "phoneNumbers": [{"id": "42", "label": "mobile", "number": "345"}], "postalAddresses": [], "prefix": null, "rawContactId": "1", "recordID": "1", "suffix": null, "thumbnailPath": "", "urlAddresses": []}

Res:

{"company": "", "department": "", "displayName": "sdf wer", "emailAddresses": [[Object], [Object]], "familyName": "wer", "givenName": "sdf", "hasThumbnail": false, "imAddresses": [], "jobTitle": "", "middleName": "", "note": "", "phoneNumbers": [[Object]], "postalAddresses": [], "prefix": null, "rawContactId": "1", "recordID": "1", "suffix": null, "thumbnailPath": "", "urlAddresses": []}
mortezaataiy commented 3 years ago

https://github.com/morenoh149/react-native-contacts/blob/75c96276fb64c89579da6a6e3479b3db3c7020bb/android/src/main/java/com/rt2zz/reactnativecontacts/ContactsProvider.java#L522 Is input birthday format "12-31" or "1986-12-31"? I try this and does not work too:sob:

morenoh149 commented 3 years ago

@mortezaataiy I'm not sure

github-actions[bot] commented 3 years ago

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