rt2zz / react-native-addressbook Goto Github PK
View Code? Open in Web Editor NEWReact Native AddressBook
React Native AddressBook
This module should support android. I've done some very preliminary research on writing a native module to the contact provider but further work will have to wait until I get more time. Feel free to start or ask questions. Ref https://github.com/morenoh149/react-native-android-contacts
I sync my google contact with my phone book id and display all the contact in the phonebook. How Can I bifurcation of which is my google contact and others? If you give me any solution it would be great.
I need google id (Source_Id) of the contacts, Any way to find the google contact id for my address book contact? in Android possible for this way (https://stackoverflow.com/a/26708378/2910061)
I've had an issue with a beta tester opening up the contacts and it took 8-10 seconds for the contacts to load (ios8, iPhone 5, and 700 contacts). Have you had any issues like this? It takes around 1-1.5 seconds on my 6. I guess I can cache them on startup after it's confirmed to mitigate this.
When I save the thumbnail path to local storage and then re-build the app the image no longer works (errors out with " Unrecognized tag protocol").
Am I doing something wrong or will it be ok on phones that are not being constantly re-built? I wasn't sure if I had to manually save the photo from the thumbnailPath from the address book.
the PR #13 fixes version 1.3.0 but there is no new release on npm.
I tried to add contact (as mentioned in example) by using AddressBook.addContact(newPerson, (err) => { console.log("error::::::"+err)}); I am getting error each time. I checked permission , its 'authorized' and 'err' coming in callback is null.
If I understand it correctly, calling requestPermission()
should display the dialog asking the user for permissions, but it doesn't seem to do that. I have a code block:
AddressBook.requestPermission( (err, permission) => {
console.log('Returning, permission=' + permission);
return(permission === 'authorized');
}
When this is called I can see the log, and it is always printing 'denied'. I expected that checkPermission()
would check and return the current permission, while requestPermission()
would display the request to the user again to grant permissions. What's the expected behavior?
Thanks very much.
Great library, just wondering if you have any idea of an ETA for group support?
The challenge is, contacts do not have ID's. There are a few options:
removeContact(index, contact, callback)
which would get the contact at the specified index, verify that it is deeply equal to the supplied contact, and then if so remove the record.removeContact(index, callback)
the problem is we do not know if the index has changed. We could keep the records in memory, but even then we have no gaurantee that the consumer has a fresh copy of our in memory contacts array.removeContact(config)
where config = {matching: contactFragment, atIndex: index}
where contactFragment is a partial set of (or whole) contact information to query against, and it will remove the contact record if all provided fields match.None of these are ideal, suggestions appreciated...
I sync my google contact with my phone book id and display all the contact in the phonebook. How Can I bifurcation of which is my google contact and others? If you give me any solution it would be great.
I need google id (Source_Id) of the contacts, Any way to find the google contact id for my address book contact? in Android possible for this way (https://stackoverflow.com/a/26708378/2910061)
We're using your module in our RN app and it's been great, but recently a few users are experiencing a crash that we believe is in RCTAddressBook.m. We've tracked it down to line 162, but only through anonymized crash reports.
[contact setObject: [self getABPersonThumbnailFilepath:person] forKey:@"thumbnailPath"];
Has anyone seen this before?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.