1.1.9 • Published 2 years ago

@islacel/react-native-country-flag v1.1.9

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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

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 © Yannis Hofmann