Questions tagged [react-native-contacts]
36 questions
6
votes
2 answers
Malformed calls from JS : field sizes are different [[8,39],[4,0]
I want to display the list of contacts on my AVD but Im facing an error (I tried linking the package but it did nothing):
My code :
const [contact, setContact] = useState([]);
useEffect(() => {
PermissionsAndroid.request(
…

therealwalim
- 252
- 1
- 4
- 18
2
votes
3 answers
App Crash while using React-Native-Contacts
My App is crashing while using any method of react-native-contacts.
function getPhoneRecords() {
PermissionsAndroid.requestMultiple([
PermissionsAndroid.PERMISSIONS.WRITE_CONTACTS,
PermissionsAndroid.PERMISSIONS.READ_CONTACTS,
]).then(() =>…

Infopedia
- 376
- 2
- 14
2
votes
0 answers
problems library react-native-contacts not working ios
I was testing an example from the react-native-contacts library in which I leave the link: https://github.com/morenoh149/react-native-contacts/tree/master/example
git clone https://github.com/rt2zz/react-native-contacts.git
cd…
1
vote
1 answer
React native contacts in list works really slow
I'm trying to add a feature to my app which is add your contacts to your profile. I'm using a package for this but it works slow (in my case 470 contact record I got in my phone).
The package
import Contacts from 'react-native-contacts';
My…

tes krmtstk4
- 13
- 6
1
vote
1 answer
Unhandled rejection on only first render - React Native
I'm attempting to build an app that imports contacts using react-native-contacts and displays that in a list.
My issue is that I'm getting an unhandled promise rejection only on the first render. Here's my code for the component, with the error…

Jonathan L
- 13
- 4
1
vote
1 answer
How to compare two array in react native?
I'm creating a react native app and load contact details into my app. Now I wanted to display an Invite button in front of the contact. My contact details in an array. I have another array with some contact details. I wanted to compare those two…

Sidath
- 379
- 1
- 9
- 25
1
vote
0 answers
How to check and get newly added contact details from phone-book using react native?
I have a mobile application written in React-Native and used React-native-contact from this guide: https://github.com/logisticinfotech/react-native-contact-multi-select. And I upload these contact details into database.
Now I want to get newly added…

Sidath
- 379
- 1
- 9
- 25
1
vote
1 answer
Is there any react native library to check for contacts which is marked as Favorite/starred?
I am working on a project, where I have to fetch phone contact details and display as list view in UI using react-native. Used react-native-contacts library to fetch the phone contact details.
My problem is react-native-contacts does not provide…

Suthakar
- 98
- 8
1
vote
1 answer
Problem in updating the contact list in android application
How exactly the react-native-contacts getAll method works? How frequently it updates the contact list in the application? Is there any particular interval to sync the contact list from the device to the application in android devices??

Sai kumar Chilukuri
- 11
- 2
1
vote
1 answer
How to display items in nested array in separate rows in react native?
I'm using react-native-contacts and I need to show all the numbers belong to each person in separate rows, no matter if contact name is the same. How should I do this?
For example, if there are 5 numbers saved for contact 'x' , I would like to have…

simaAttar
- 469
- 9
- 15
1
vote
2 answers
Can I Get Updates on the device's Contacts List - with React-Native
On a React-Native mobile app, I need to access the contacts list, which is stored on the mobile device. The following 2 libraries provide this functionality. However, it seems that none of them provides information about which contacts have been…

Bilal Abdeen
- 1,627
- 1
- 19
- 41
1
vote
1 answer
not able to add contact in android
I am trying to add a new contact to the Address book using react-native-contacts plugin, however I am getting the following error
java.lang.SecurityException: Permission Denial: writing com.android.providers.contacts.ContactsProvider2 uri…

prashant
- 31
- 2
1
vote
2 answers
undefined is not an object (evaluating '_reactNativeContacts.default.getAll')
I am trying du use react-native-contacts with a react-native app made with Expo, but I have this error message :
undefined is not an object (evaluating '_reactNativeContacts.default.getAll')
Here is the code I use :
import React from 'react';
import…

Neiluj
- 113
- 12
1
vote
2 answers
react-native-contacts getAll return null
according to this link I used react-native-contact to open contact list in android device so the user can choose one and and add it to list. but when I click a button to open a contact list, react-native-contacts getAll returns null.
here is a code…

Saeedeh
- 297
- 1
- 4
- 21
0
votes
1 answer
Select first mobile number from a contact if it has multiple numbers stored, from the Contact list in React Native
I'm using "react-native-contacts-wrapper" library for selecting contact from the contact list of device. But if there are two contact numbers are saved under one name then it is selecting second one, but I want to select the first one number. Can…

Anjali
- 47
- 8