New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-country-code-list

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-country-code-list

Country code list with alphabet navigation for Android/IOS to use with react-native

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10
decreased by-28.57%
Maintainers
1
Weekly downloads
 
Created
Source

ReactNativeCountryCodeList

Country code list with alphabet navigation npm version npm version

Country code list with alphabet navigation for Android/IOS to use with react-native, based on react-native-alphabetlistview, also using react-native-search-box

Installation

  1. npm install react-native-country-code-list --save or yarn add react-native-country-code-list

Demo

Usage


import CountryCodeList from 'react-native-country-code-list'

class CountryCodeListApp extends React.Component {
    render() {
      return (
        <CountryCodeList
	  onClickCell={(cellObject) => console.log(cellObject)}
	  />
      );
    }

Props

All props are optional

Note if you will pass custom data as a list you also must provide renderCell, renderSectionHeader, renderSectionItem functions and search action.

PropDefaultTypeDescription
datacountry code list objectobjectCustom list data
alphabetListPropsundefinedobjectreact-native-alphabetlistview props
searchPropsundefinedobjectreact-native-search-box props
onClickCell() => {}funcCallback onClick list item
headerBackgroundrgb(245, 245, 245)anybackground for headers and search wrapper
cellHeight44.5numberCell height
sectionHeaderHeight30numberSection header height
renderCellfuncfuncCustom Cell component
renderSectionItemfuncfuncCustom Section Item (Alphabet) component
renderSectionHeaderfuncfuncCustom Section header component
sectionHeaderStylestyleanystyle section header
sectionHeaderTextStylestyleanystyle section header text
sectionItemTextStylestyleanystyle section item text
cellStylestyleanystyle list item
cellTitleStylestyleanystyle list item title
cellLabelStylestyleanystyle list item right label

Questions or suggestions?

Feel free to open an issue

Keywords

FAQs

Package last updated on 04 Jan 2019

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