expo-contacts 15.0.6 → 15.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/android/build.gradle +2 -2
- package/build/Contacts.d.ts +16 -9
- package/build/Contacts.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.module → 15.0.7/expo.modules.contacts-15.0.7.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.pom → 15.0.7/expo.modules.contacts-15.0.7.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.7/expo.modules.contacts-15.0.7.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -3
- package/src/Contacts.ts +18 -40
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.contacts/15.0.6/expo.modules.contacts-15.0.6.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6-sources.jar → 15.0.7/expo.modules.contacts-15.0.7-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6-sources.jar.md5 → 15.0.7/expo.modules.contacts-15.0.7-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6-sources.jar.sha1 → 15.0.7/expo.modules.contacts-15.0.7-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6-sources.jar.sha256 → 15.0.7/expo.modules.contacts-15.0.7-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6-sources.jar.sha512 → 15.0.7/expo.modules.contacts-15.0.7-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.aar → 15.0.7/expo.modules.contacts-15.0.7.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.aar.md5 → 15.0.7/expo.modules.contacts-15.0.7.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.aar.sha1 → 15.0.7/expo.modules.contacts-15.0.7.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.aar.sha256 → 15.0.7/expo.modules.contacts-15.0.7.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.contacts/{15.0.6/expo.modules.contacts-15.0.6.aar.sha512 → 15.0.7/expo.modules.contacts-15.0.7.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 15.0.7 — 2025-09-02
|
|
14
|
+
|
|
15
|
+
### 💡 Others
|
|
16
|
+
|
|
17
|
+
- Improved type safety with NewContact and ExistingContact types. ([#39269](https://github.com/expo/expo/pull/39269) by [@hryhoriiK97](https://github.com/hryhoriiK97))
|
|
18
|
+
|
|
13
19
|
## 15.0.6 — 2025-08-31
|
|
14
20
|
|
|
15
21
|
### 🐛 Bug fixes
|
package/android/build.gradle
CHANGED
package/build/Contacts.d.ts
CHANGED
|
@@ -238,13 +238,11 @@ export type Image = {
|
|
|
238
238
|
base64?: string;
|
|
239
239
|
};
|
|
240
240
|
/**
|
|
241
|
-
*
|
|
241
|
+
* Base contact type without ID. For better type safety, consider using:
|
|
242
|
+
* - `Contact` when creating new contacts (no ID needed)
|
|
243
|
+
* - `ExistingContact` when working with contacts returned from the system (ID guaranteed)
|
|
242
244
|
*/
|
|
243
245
|
export type Contact = {
|
|
244
|
-
/**
|
|
245
|
-
* Immutable identifier used for querying and indexing. This value will be generated by the OS when the contact is created.
|
|
246
|
-
*/
|
|
247
|
-
id?: string;
|
|
248
246
|
/**
|
|
249
247
|
* Denoting a person or company.
|
|
250
248
|
*/
|
|
@@ -372,6 +370,15 @@ export type Contact = {
|
|
|
372
370
|
*/
|
|
373
371
|
isFavorite?: boolean;
|
|
374
372
|
};
|
|
373
|
+
/**
|
|
374
|
+
* Type for existing contacts returned from the system - guarantees the id field is present.
|
|
375
|
+
*/
|
|
376
|
+
export type ExistingContact = Contact & {
|
|
377
|
+
/**
|
|
378
|
+
* Immutable identifier used for querying and indexing. This value will be generated by the OS when the contact is created.
|
|
379
|
+
*/
|
|
380
|
+
id: string;
|
|
381
|
+
};
|
|
375
382
|
/**
|
|
376
383
|
* The return value for queried contact operations like `getContactsAsync`.
|
|
377
384
|
*/
|
|
@@ -379,7 +386,7 @@ export type ContactResponse = {
|
|
|
379
386
|
/**
|
|
380
387
|
* An array of contacts that match a particular query.
|
|
381
388
|
*/
|
|
382
|
-
data:
|
|
389
|
+
data: ExistingContact[];
|
|
383
390
|
/**
|
|
384
391
|
* This will be `true` if there are more contacts to retrieve beyond what is returned.
|
|
385
392
|
*/
|
|
@@ -577,7 +584,7 @@ export declare function getPagedContactsAsync(contactQuery?: ContactQuery): Prom
|
|
|
577
584
|
* }
|
|
578
585
|
* ```
|
|
579
586
|
*/
|
|
580
|
-
export declare function getContactByIdAsync(id: string, fields?: FieldType[]): Promise<
|
|
587
|
+
export declare function getContactByIdAsync(id: string, fields?: FieldType[]): Promise<ExistingContact | undefined>;
|
|
581
588
|
/**
|
|
582
589
|
* Creates a new contact and adds it to the system.
|
|
583
590
|
* > **Note**: For Android users, the Expo Go app does not have the required `WRITE_CONTACTS` permission to write to Contacts.
|
|
@@ -612,7 +619,7 @@ export declare function addContactAsync(contact: Contact, containerId?: string):
|
|
|
612
619
|
*/
|
|
613
620
|
export declare function updateContactAsync(contact: {
|
|
614
621
|
id: string;
|
|
615
|
-
} & Partial<
|
|
622
|
+
} & Partial<ExistingContact>): Promise<string>;
|
|
616
623
|
/**
|
|
617
624
|
* Delete a contact from the system.
|
|
618
625
|
* @param contactId ID of the contact you want to delete.
|
|
@@ -740,7 +747,7 @@ export declare function getGroupsAsync(groupQuery: GroupQuery): Promise<Group[]>
|
|
|
740
747
|
* required to use this method.
|
|
741
748
|
* @return A promise that fulfills with a single `Contact` object if a contact is selected or `null` if no contact is selected (when selection is canceled).
|
|
742
749
|
*/
|
|
743
|
-
export declare function presentContactPickerAsync(): Promise<
|
|
750
|
+
export declare function presentContactPickerAsync(): Promise<ExistingContact | null>;
|
|
744
751
|
/**
|
|
745
752
|
* Get the default container's ID.
|
|
746
753
|
* @return A promise that fulfills with default container ID.
|
package/build/Contacts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Contacts.d.ts","sourceRoot":"","sources":["../src/Contacts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,gBAAgB,EAChB,oBAAoB,EAGrB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAmB,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAIlE,MAAM,MAAM,0BAA0B,GAAG,kBAAkB,GAAG;IAC5D;;;;;OAKG;IACH,gBAAgB,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,MAAM,CAAC;CAC/C,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,eAAe,GAAG,GAAG,eAAe,EAAE,CAAC;AAExE,MAAM,MAAM,aAAa,GAAG,cAAc,GAAG,GAAG,cAAc,EAAE,CAAC;AAEjE,MAAM,MAAM,WAAW,GAAG,YAAY,GAAG,GAAG,YAAY,EA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H,OAAO,YAAY;IACnB;;OAEG;IACH,eAAe,oBAAoB;IACnC;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,gBAAgB,qBAAqB;CACtC;AAED;;GAEG;AACH,oBAAY,cAAc;IACxB;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,UAAU,eAAe;CAC1B;AAED,oBAAY,SAAS;IACnB;;;OAGG;IACH,WAAW,gBAAgB;IAC3B;;OAEG;IACH,SAAS,cAAc;IACvB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,IAAI,SAAS;CACd;AAED,oBAAY,YAAY;IACtB;;OAEG;IACH,MAAM,WAAW;IACjB;;OAEG;IACH,OAAO,YAAY;CACpB"}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.contacts",
|
|
6
|
-
"version": "15.0.
|
|
6
|
+
"version": "15.0.7",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"files": [
|
|
26
26
|
{
|
|
27
|
-
"name": "expo.modules.contacts-15.0.
|
|
28
|
-
"url": "expo.modules.contacts-15.0.
|
|
27
|
+
"name": "expo.modules.contacts-15.0.7.aar",
|
|
28
|
+
"url": "expo.modules.contacts-15.0.7.aar",
|
|
29
29
|
"size": 110210,
|
|
30
30
|
"sha512": "9b4eb25c6973464079f6217fb1636fc94afca78a2fe1b34c815491a6f424d4700dabcc1192afec7ce70bcb3426e9517cceeaa64e5e3fd9568eb4087e73a3872e",
|
|
31
31
|
"sha256": "bf95197f5375c51a051ea0a2fc1e9706b1e0ca53b27b6bafdc54f3d9180882c8",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
],
|
|
61
61
|
"files": [
|
|
62
62
|
{
|
|
63
|
-
"name": "expo.modules.contacts-15.0.
|
|
64
|
-
"url": "expo.modules.contacts-15.0.
|
|
63
|
+
"name": "expo.modules.contacts-15.0.7.aar",
|
|
64
|
+
"url": "expo.modules.contacts-15.0.7.aar",
|
|
65
65
|
"size": 110210,
|
|
66
66
|
"sha512": "9b4eb25c6973464079f6217fb1636fc94afca78a2fe1b34c815491a6f424d4700dabcc1192afec7ce70bcb3426e9517cceeaa64e5e3fd9568eb4087e73a3872e",
|
|
67
67
|
"sha256": "bf95197f5375c51a051ea0a2fc1e9706b1e0ca53b27b6bafdc54f3d9180882c8",
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
},
|
|
81
81
|
"files": [
|
|
82
82
|
{
|
|
83
|
-
"name": "expo.modules.contacts-15.0.
|
|
84
|
-
"url": "expo.modules.contacts-15.0.
|
|
83
|
+
"name": "expo.modules.contacts-15.0.7-sources.jar",
|
|
84
|
+
"url": "expo.modules.contacts-15.0.7-sources.jar",
|
|
85
85
|
"size": 19972,
|
|
86
86
|
"sha512": "b56feb83e945a7b4df2ca5a71da12aa5d4dc939082da448ab8548bc4967bb24eb48062902db6f3bb234e47d2ad2e55647c3b39f344af2cecd6d87f5b2b5f6aaa",
|
|
87
87
|
"sha256": "7805b5686f14c0034af179db4c28f3af823529d1f21fca8eac2355601cca4636",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
7814935ba764b4923f6271519f3e2064
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bbd6815781e60cb189eaa360110e0450d79aa158
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6fe734318ad28f1a6235bb7a706fb2cd4d0a77250cbf9954ccca3845c360dc2a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
b0d6116c35e92503d5909ea7206d96723d05f3bee827c769c4a7b9c823c9c76abd9ef1fec20e4f313a8ad37f49c78edd854836cc7ffb3990b0ac220209b5426e
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.contacts</artifactId>
|
|
12
|
-
<version>15.0.
|
|
12
|
+
<version>15.0.7</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.contacts</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6f17d72709784a470c36012d0f786428
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
77d19af889e8047b271d369b0e8cbd917f32ff80
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
510708d8ca569ba3961737059a28e5e5aae4494ab366d0d4bd87a371663587c1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6f97ae3ce9e1948a4d206f81b953cf89151e13291eb6962a47d5f9dbfffe8b1ca14f8e363a25bc164d7c38f840811981d60dcafd1db44cf70ece6fe90dcaa772
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.contacts</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>15.0.
|
|
7
|
-
<release>15.0.
|
|
6
|
+
<latest>15.0.7</latest>
|
|
7
|
+
<release>15.0.7</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>15.0.
|
|
9
|
+
<version>15.0.7</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250902175113</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
70bd054ca1e8b77d030ae00d9d9835bb
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f9ebb767d76de54e75f7dead3fb25a50d2702d17
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4a12779a23d6ae8391d331916db6cb5979f7d2d41162b512a1cc8967a82580cd
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
bd75319080867b456ec504eca672641adc1967327cbf3e2125e8e01eb3218f2713296952a149a0b59c4766b7f8910455d16d3cb231c72b82d2e5e72e40f988d2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-contacts",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.7",
|
|
4
4
|
"description": "Provides access to the phone's system contacts.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"preset": "expo-module-scripts"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"expo-module-scripts": "^5.0.
|
|
37
|
+
"expo-module-scripts": "^5.0.6"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*",
|
|
41
41
|
"react": "*",
|
|
42
42
|
"react-native": "*"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "d635404a12ea7996b987ce0fb7679a238ebcf31b"
|
|
45
45
|
}
|
package/src/Contacts.ts
CHANGED
|
@@ -262,13 +262,11 @@ export type Image = {
|
|
|
262
262
|
};
|
|
263
263
|
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* Base contact type without ID. For better type safety, consider using:
|
|
266
|
+
* - `Contact` when creating new contacts (no ID needed)
|
|
267
|
+
* - `ExistingContact` when working with contacts returned from the system (ID guaranteed)
|
|
266
268
|
*/
|
|
267
269
|
export type Contact = {
|
|
268
|
-
/**
|
|
269
|
-
* Immutable identifier used for querying and indexing. This value will be generated by the OS when the contact is created.
|
|
270
|
-
*/
|
|
271
|
-
id?: string;
|
|
272
270
|
/**
|
|
273
271
|
* Denoting a person or company.
|
|
274
272
|
*/
|
|
@@ -397,6 +395,16 @@ export type Contact = {
|
|
|
397
395
|
isFavorite?: boolean;
|
|
398
396
|
};
|
|
399
397
|
|
|
398
|
+
/**
|
|
399
|
+
* Type for existing contacts returned from the system - guarantees the id field is present.
|
|
400
|
+
*/
|
|
401
|
+
export type ExistingContact = Contact & {
|
|
402
|
+
/**
|
|
403
|
+
* Immutable identifier used for querying and indexing. This value will be generated by the OS when the contact is created.
|
|
404
|
+
*/
|
|
405
|
+
id: string;
|
|
406
|
+
};
|
|
407
|
+
|
|
400
408
|
/**
|
|
401
409
|
* The return value for queried contact operations like `getContactsAsync`.
|
|
402
410
|
*/
|
|
@@ -404,7 +412,7 @@ export type ContactResponse = {
|
|
|
404
412
|
/**
|
|
405
413
|
* An array of contacts that match a particular query.
|
|
406
414
|
*/
|
|
407
|
-
data:
|
|
415
|
+
data: ExistingContact[];
|
|
408
416
|
/**
|
|
409
417
|
* This will be `true` if there are more contacts to retrieve beyond what is returned.
|
|
410
418
|
*/
|
|
@@ -659,7 +667,7 @@ export async function getPagedContactsAsync(
|
|
|
659
667
|
export async function getContactByIdAsync(
|
|
660
668
|
id: string,
|
|
661
669
|
fields?: FieldType[]
|
|
662
|
-
): Promise<
|
|
670
|
+
): Promise<ExistingContact | undefined> {
|
|
663
671
|
if (!ExpoContacts.getContactsAsync) {
|
|
664
672
|
throw new UnavailabilityError('Contacts', 'getContactsAsync');
|
|
665
673
|
}
|
|
@@ -702,8 +710,7 @@ export async function addContactAsync(contact: Contact, containerId?: string): P
|
|
|
702
710
|
throw new UnavailabilityError('Contacts', 'addContactAsync');
|
|
703
711
|
}
|
|
704
712
|
|
|
705
|
-
|
|
706
|
-
return await ExpoContacts.addContactAsync(noIdContact, containerId);
|
|
713
|
+
return await ExpoContacts.addContactAsync(contact, containerId);
|
|
707
714
|
}
|
|
708
715
|
|
|
709
716
|
/**
|
|
@@ -721,7 +728,7 @@ export async function addContactAsync(contact: Contact, containerId?: string): P
|
|
|
721
728
|
* ```
|
|
722
729
|
*/
|
|
723
730
|
export async function updateContactAsync(
|
|
724
|
-
contact: { id: string } & Partial<
|
|
731
|
+
contact: { id: string } & Partial<ExistingContact>
|
|
725
732
|
): Promise<string> {
|
|
726
733
|
if (!ExpoContacts.updateContactAsync) {
|
|
727
734
|
throw new UnavailabilityError('Contacts', 'updateContactAsync');
|
|
@@ -970,7 +977,7 @@ export async function getGroupsAsync(groupQuery: GroupQuery): Promise<Group[]> {
|
|
|
970
977
|
* required to use this method.
|
|
971
978
|
* @return A promise that fulfills with a single `Contact` object if a contact is selected or `null` if no contact is selected (when selection is canceled).
|
|
972
979
|
*/
|
|
973
|
-
export async function presentContactPickerAsync(): Promise<
|
|
980
|
+
export async function presentContactPickerAsync(): Promise<ExistingContact | null> {
|
|
974
981
|
if (!ExpoContacts.presentContactPickerAsync) {
|
|
975
982
|
throw new UnavailabilityError('Contacts', 'presentContactPickerAsync');
|
|
976
983
|
}
|
|
@@ -1049,35 +1056,6 @@ export async function presentAccessPickerAsync(): Promise<string[]> {
|
|
|
1049
1056
|
return await ExpoContacts.presentAccessPickerAsync();
|
|
1050
1057
|
}
|
|
1051
1058
|
|
|
1052
|
-
/** @private */
|
|
1053
|
-
function removeIds(contact: Contact): Contact {
|
|
1054
|
-
const updatedContact = { ...contact };
|
|
1055
|
-
if (contact.id && __DEV__) {
|
|
1056
|
-
console.warn(
|
|
1057
|
-
`You have set an id = ${contact.id} for the contact. This value will be ignored, because the id will be generated by the OS`
|
|
1058
|
-
);
|
|
1059
|
-
delete updatedContact.id;
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
for (const key of Object.keys(contact)) {
|
|
1063
|
-
const prop = key as keyof Contact;
|
|
1064
|
-
const value = contact[prop];
|
|
1065
|
-
if (Array.isArray(value)) {
|
|
1066
|
-
(updatedContact as any)[prop] = value.map((item, index) => {
|
|
1067
|
-
if (typeof item === 'object' && item != null && 'id' in item) {
|
|
1068
|
-
__DEV__ &&
|
|
1069
|
-
console.warn(
|
|
1070
|
-
`You have set an id "${item.id}" at index "${index}" for the key "${key}" of the contact. This value will be ignored, because the id will be generated by the OS`
|
|
1071
|
-
);
|
|
1072
|
-
return { ...item, id: null };
|
|
1073
|
-
}
|
|
1074
|
-
return item;
|
|
1075
|
-
});
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
return updatedContact;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
1059
|
/**
|
|
1082
1060
|
* Possible fields to retrieve for a contact.
|
|
1083
1061
|
*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9fac9437f2c09a64527f85ddaef9ef43
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6050751d847a4e88f0474330c9bc121efe40d21b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
673c47e1c20ab2b1e69b0bd2bb52f5b7717b83ea7faaf3dabb88fc059cc2c40e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5846e7d6f8221a02d123f85242baa5a589ee0cf47b815fb269859edbcc885787f40adeea52cb0d3d9cdc84f4c790a08989fc881ad0498b5837f35ab7d2d491f7
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1aace678ec6b01f26247e93aff21e105
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
903b74c040cb682fa011a3be2be13ef4ec9ea936
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ad2ea6203058f8101afc0ae026ee958322b314d0109d63728249b0cc5a6e92aa
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8f01a3ecee3e679c46964f4495bc926df415d84f8aefb2b4bfb93bea11fee479e48992e9fa076221a4c68b061ec386a06d634001e1240aeaa2ad12707fba3687
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|