Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-contacts-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-contacts-wrapper

Simple UI wrapper around expo's Contacts API.

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

A UI wrapper for expo's native Contacts API. Renders contacts in a list.

Installation

# yarn
yarn add expo-contacts-wrapper

# npm
npm install expo-contacts-wrapper --save

Usage

import { ContactsListWrapper } from "expo-contacts-wrapper";

export default function App() {
  const finishSelectingContacts = (selectedContacts) => {
    console.log("Selected Contacts", selectedContacts);
  };

  return <ContactsListWrapper onFinish={finishSelectingContacts} />;
}

Props

PropRequired?TypeDefaultDescription
onFinishtruefunctionNoneCallback when user is done adding contacts. First argument is array of contacts.
pageSizefalseInteger50How many contacts to load per page.
sortfalseSortTypeContacts.SortTypes.LastNameSort type provided by Expo.
LoadingComponentfalseComponentComponent to show while contacts are loading.
PermissionDeniedComponentfalseComponentComponent to show when permission to the Contacts list is denied.
searchBarTextInputPropsfalseObjectNoneSet of props to pass to InputText search box.
searchBarDebounceMSfalseInteger500Debounce timer on the search bar.
ContactComponentfalseComponentCustom component to render a contact in the list. Is given props contact and isSelected.
GetMoreComponentfalseComponentActivityIndicatorComponent to display at bottom of the list when there are more contacts to load.
contactsListContainerStylefalseObjectStyling for list container.
headerStylefalseObjectStyling for header containing "done" button.
doneButtonStylefalseObjectStyling for done button (TouchableOpacity.
doneButtonTextfalseString"Done"Text content of the done button.

Keywords

FAQs

Package last updated on 19 Mar 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc