react-native-country-flag

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
react-native-country-flag
3721.1.95 months ago2 years agoMinified + gzip package size for react-native-country-flag in KB

Readme

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

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

Usage

This is a simple example how you can use the CountryFlag component. ```jsx import CountryFlag from "react-native-country-flag"; ``` 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