Skip to content

Expo contacts unparseable date #4757

@josaric

Description

@josaric

🐛 Bug Report

Environment

React native expo android
expo "sdkVersion": "32.0.0",

Import/sync contacts from Skype to your native contacts library, contact from Skype has different date format e.g. Jan 10, 1988.
Now in your react native app run this code

import {Contacts} from "expo";

componentDidMount() {
Contacts.getContactsAsync()
.then(async (contacts) => { console.log(contacts) })
.catch( err => console.log(err.message))
}

In catch error message you will get: Unparseable date Jan 10, 1988 and contacts will not be fetched. Now for each contact you will need to remove birthday or change it to another date format.
I have tested also this issue on iOS and there I'm not getting this error, so issue exists only on Android.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions