Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
react-native-contacts-chooser
Advanced tools
Native wrapper for iOS and Android contacts picker UIs.
Native wrapper for iOS and Android contacts picker UIs.
$ npm install react-native-contacts-chooser --save
$ react-native link react-native-contacts-chooser
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-contacts-chooser
and add RNContactsPicker.xcodeproj
libRNContactsPicker.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<Privacy - Contacts Usage Description
to your project's info.plistandroid/app/src/main/java/[...]/MainActivity.java
import com.bluebamboostudios.RNContactsPickerPackage;
to the imports at the top of the filenew RNContactsPickerPackage()
to the list returned by the getPackages()
methodandroid/settings.gradle
:
include ':react-native-contacts-picker'
project(':react-native-contacts-picker').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-contacts-picker/android')
android/app/build.gradle
:
compile project(':react-native-contacts-picker')
<uses-permission android:name="android.permission.READ_CONTACTS" />
to your Android Manifestimport ContactsPicker from 'react-native-contacts-chooser';
try {
const granted = ContactsPicker.requestAccess();
if (granted) {
const contact = ContactsPciker.pickContact();
alert(JSON.stringify(contact));
}
} catch (e) {
console.warn(e);
}
import ContactsPicker from 'react-native-contacts-chooser';
try {
const granted = ContactsPicker.requestAccess();
} catch (e) {
console.error(e);
}
import ContactsPicker from 'react-native-contacts-chooser';
try {
const granted = ContactsPicker.checkAccess();
} catch (e) {
console.error(e);
}
import ContactsPicker from 'react-native-contacts-chooser';
try {
const contact = ContactsPicker.pickContact();
} catch (e) {
console.error(e);
}
import ContactsPicker from 'react-native-contacts-chooser';
try {
const contacts = ContactsPicker.pickContacts();
} catch (e) {
console.error(e);
}
import ContactsPicker from 'react-native-contacts-chooser';
try {
const contact = ContactsPicker.pickProperty();
} catch (e) {
console.error(e);
}
on iOS there is a bug with picking multiple properties that causes the picker UI to present as the mutliple contact picker and therefore fails to return multiple properties.
FAQs
Native wrapper for iOS and Android contacts picker UIs.
We found that react-native-contacts-chooser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.