Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
expo-contacts-wrapper
Advanced tools
A UI wrapper for expo's native Contacts API. Renders contacts in a list.
# yarn
yarn add expo-contacts-wrapper
# npm
npm install expo-contacts-wrapper --save
import { ContactsListWrapper } from "expo-contacts-wrapper";
export default function App() {
const finishSelectingContacts = (selectedContacts) => {
console.log("Selected Contacts", selectedContacts);
};
return <ContactsListWrapper onFinish={finishSelectingContacts} />;
}
Prop | Required? | Type | Default | Description |
---|---|---|---|---|
onFinish | true | function | None | Callback when user is done adding contacts. First argument is array of contacts. |
pageSize | false | Integer | 50 | How many contacts to load per page. |
sort | false | SortType | Contacts.SortTypes.LastName | Sort type provided by Expo. |
LoadingComponent | false | Component | Component to show while contacts are loading. | |
PermissionDeniedComponent | false | Component | Component to show when permission to the Contacts list is denied. | |
searchBarTextInputProps | false | Object | None | Set of props to pass to InputText search box. |
searchBarDebounceMS | false | Integer | 500 | Debounce timer on the search bar. |
ContactComponent | false | Component | Custom component to render a contact in the list. Is given props contact and isSelected . | |
GetMoreComponent | false | Component | ActivityIndicator | Component to display at bottom of the list when there are more contacts to load. |
contactsListContainerStyle | false | Object | Styling for list container. | |
headerStyle | false | Object | Styling for header containing "done" button. | |
doneButtonStyle | false | Object | Styling for done button (TouchableOpacity . | |
doneButtonText | false | String | "Done" | Text content of the done button. |
FAQs
Simple UI wrapper around expo's Contacts API.
We found that expo-contacts-wrapper 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.