npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

react-native-contacts-picker

v0.0.7

Published

通讯录选择器,兼容iOS8,兼容最新RN版本

Downloads

63

Readme

react-native-contacts-picker

react-native兼容iOS8的通讯录选择器

使用方式(Android)

  • 安装模块
npm i react-native-contacts-picker -s
  • 关联模块
react-native link react-native-contacts-picker
  • 添加权限
<uses-permission android:name="android.permission.READ_CONTACTS" />
  • 引入模块
import ContactPickerBridge from 'react-native-contacts-picker';

使用方式(iOS)

  • 安装模块
npm i react-native-contacts-picker -s
  • 关联模块
react-native link react-native-contacts-picker
  • 添加权限

    Info.plist 中添加 Privacy - Contacts Usage Description 权限

  • 引入模块

import ContactPickerBridge from 'react-native-contacts-picker';

接口说明

|接口名|接口成功返回|接口失败返回|注意点| | --- | --- | --- | --- | |openContactPicker|返回 {"data": {"phone":"(555) 564-8583","name":"Bell Kate"}, "code": 0} 格式数据|{"msg": "失败原因", "code": 1/2}|| |getAllContact|返回 {"data": [{"phoneArray":["(555) 766-4823","(707) 555-1854"],"name":"ZakroffHank"}], "code": 0} 格式数据|{"msg": "失败原因", "code": 1/2}|| |checkContactPermissions|{"status": true/false}|无|由于Android 6.0以下没有原生权限管理,因此目标版本在23以下时,返回的永远是true。不过可以使用 getAllContact 方法看返回的数据是否为空来粗略判断权限。|