@islacel/react-native-country-flag
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

react-native-country-flag

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

NPM

Install

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

Usage

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

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

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

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

Props

Prop Type Desciption
isoCode String Define the country flag with the ISO 3166-1 alpha-2 Standard.
size Integer Define the size from the country flag.
style Stylesheet Customize the style from the CountryFlag component.

License

MIT © Yannis Hofmann

Package Sidebar

Install

npm i @islacel/react-native-country-flag

Weekly Downloads

1

Version

1.1.9

License

ISC

Unpacked Size

10.7 MB

Total Files

524

Last publish

Collaborators

  • vmherrera1991
  • rigotra1984