bluebamboostudios / react-native-contacts-chooser Goto Github PK
View Code? Open in Web Editor NEWNative contact picker for iOS and Android.
License: MIT License
Native contact picker for iOS and Android.
License: MIT License
In Usage Example You have given
ContactsPciker.pickContact()
instead of ContactsPicker.pickContact()
even though its a simple spelling mistake it took some time for me to understand the issue.
A problem occurred configuring project ':react-native-contacts-chooser'.
Could not determine the dependencies of null.
Could not resolve all task dependencies for configuration ':react-native-contacts-chooser:classpath'.
> Could not find com.android.tools.build:gradle:2.2.3.
Searched in the following locations:
- https://jcenter.bintray.com/com/android/tools/build/gradle/2.2.3/gradle-2.2.3.pom
If the artifact you are trying to retrieve can be found in the repository but without metadata in 'Maven POM' format, you need to adjust the 'metadataSources { ... }' of the repository declaration.
Required by:
project :react-native-contacts-chooser
If you get an error like this,
FAILURE: Build failed with an exception.
Please check the path of module. (../node_modules/react-native-contacts-chooser)
The library is named "react-native-contacts-chooser" but is used as "react-native-contacts-chooser" when importing from 'Getting Started' description in 'readme.md'.
ex)
project(':react-native-contacts-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-contacts-picker/android')
to convert
project(':react-native-contacts-chooser').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-contacts-chooser'/android')
I need to select contact from native contact app in ios, so i am using react-native-contacts-chooser this library is working fine if remote debugger is on but if it is off, it only work for the first time. it is because the difference of javaScript engines in real device and
remote debbuger but how to solve this.
react-native
: "^0.58.5"react
: "16.8.6"try {
const granted = ContactsPicker.requestAccess();
if (granted) {
const contact = ContactsPicker.pickContact().then((item) => {
if (item) {
return null;
}
console.log(item);
})
.catch((err) => {
throw err;
});
}
} catch (e) {
alert(`please try again ${e}`);
}
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.