Gathering detailed insights and metrics for @digieggs/rn-country-code-picker
Gathering detailed insights and metrics for @digieggs/rn-country-code-picker
Gathering detailed insights and metrics for @digieggs/rn-country-code-picker
Gathering detailed insights and metrics for @digieggs/rn-country-code-picker
A searchable dropdown component to select a country code for your phone number input.
npm install @digieggs/rn-country-code-picker
Typescript
Module System
Node Version
NPM Version
47.1
Supply Chain
60.5
Quality
67.9
Maintenance
50
Vulnerability
94.1
License
TypeScript (81.45%)
Java (9.11%)
Objective-C (6.56%)
Ruby (1.21%)
Starlark (0.87%)
JavaScript (0.81%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
25 Stars
90 Commits
12 Forks
1 Watchers
4 Branches
3 Contributors
Updated on Apr 03, 2025
Latest Version
1.4.4
Package Id
@digieggs/rn-country-code-picker@1.4.4
Unpacked Size
1.88 MB
Size
576.29 kB
File Count
945
NPM Version
8.5.5
Node Version
17.9.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
You can read our article about this package: https://medium.com/digieggs/complete-guide-to-using-country-code-picker-in-your-react-native-projects-daedc55cc4c4
A searchable dropdown component to select a country code for your phone number input.
This component is not supported in the managed workflow for expo for the time being.
npm install @digieggs/rn-country-code-picker
or
yarn add @digieggs/rn-country-code-picker
Also you need to manually install react-native-svg
and react-native-localize
libraries for the icons in the component
npm install react-native-svg react-native-localize
or
yarn add react-native-svg react-native-localize
As react-native@0.60.0 or above supports autolinking, so there is no need to run linking process. Read more about autolinking here.
CocoaPods on iOS needs this extra step
npx pod-install
No additional step is required.
First of all, import the component.
1import { CallingCodePicker } from '@digieggs/rn-country-code-picker';
Then use it like this.
1const [selectedCallingCode, setSelectedCallingCode] = useState(''); 2 3return <CallingCodePicker onValueChange={callingCode => setSelectedCallingCode(callingCode)} />;
initialCountryCode
onValueChange
togglerContainerStyle
togglerLabelStyle
listContainerStyle
searchInputStyle
listStyle
pickerItemLabelStyle
pickerItemContainerStyle
style
isFlagVisible
initialCountryCode
the ISO 3166-1 alpha-2 code (FR, US, CA) of the country that you would like to show initially. If you don't pass a value to this, the country code based on your device locale will be used.
Type | Required |
---|---|
string | no |
onValueChange
Callback for when a country is selected.
callingCode
: the calling code of the selected countryType | Required |
---|---|
function | Yes |
togglerContainerStyle
Style to apply to the toggler container.
Type | Required |
---|---|
StyleProp | No |
togglerLabelStyle
Style to apply to the picker toggler label.
Type | Required |
---|---|
StyleProp | No |
listContainerStyle
Style to apply to the list container.
Type | Required |
---|---|
StyleProp | No |
searchInputStyle
Style to apply to the search input.
Type | Required |
---|---|
StyleProp | No |
listStyle
Style to apply to the FlatList component.
Type | Required |
---|---|
StyleProp | No |
pickerItemLabelStyle
Style to apply to each of the item labels.
Type | Required |
---|---|
StyleProp | No |
pickerItemContainerStyle
Style to apply to each of the item container.
Type | Required |
---|---|
StyleProp | No |
style
Style to apply to container.
Type | Required |
---|---|
StyleProp | No |
isFlagVisible
Visibility of flag component.
Type | Required |
---|---|
boolean | No |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 8/25 approved changesets -- score normalized to 3
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
19 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More