JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 22178
  • Score
    100M100P100Q143637F
  • License ISC

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

Package Exports

  • react-native-country-flag

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-country-flag) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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

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 of the country flag
style Stylesheet/Object Customize the style from the CountryFlag component

License

MIT © Yannis Hofmann