📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

react-native-country-flag-icon

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-country-flag-icon

This is a React-Native package to display every 254 Country flags with the ISO 3166-1 alpha-2 Standard! But teeny tiny icon sized images!

1.2.5
latest
Source
npm
Version published
Weekly downloads
280
-30%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-country-flag-icon

This is a React-Native package to display every 254 Country flags with the ISO 3166-1 alpha-2 Standard!

Credit to the original author of this package, I just forked to make them smaller: https://github.com/YannisHofmann/react-native-country-flag

NPM

Install

npm install --save react-native-country-flag-icon

Usage

This is a simple example how you can use the CountryFlag component.

import CountryFlag from "react-native-country-flag-icon";

<CountryFlag isoCode="de" size={25} />

You can only use the ISO 3166-1 alpha-2 Standard for the isoCode property.

Props

PropTypeDesciption
isoCodeStringDefine the country flag with the ISO 3166-1 alpha-2 Standard.
sizeIntegerDefine the size from the country flag.
styleStylesheetCustomize the style from the CountryFlag component.

License

MIT © David Brookes

Keywords

React-Native

FAQs

Package last updated on 14 Apr 2023

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