1.1.4 • Published 9 months ago

react-countryname-flag v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

react-countryname-flag

NPM version Build npm-typescriptLicense]github-license-url

Installation:

npm install react-countryname-flag --save-dev

or

yarn add -D react-countryname-flag

Usage :

  • Get country flag from country name

import { CountryFlag } from 'react-countryname-flag'

<CountryFlag countryName={'Afghanistan'} style={{ fontSize: '20px' }} />

  🇦🇫
  • Get country flag from country code

import { CountryFlag } from 'react-countryname-flag'

<CountryFlag countryCode={'AG'} />

  🇦🇬
  • Get country code from country name

import { CountryCode } from 'react-countryname-flag'

<CountryCode countryName={'Afghanistan'} />

  // AF
  • Get country name from country code

import { CountryName } from 'react-countryname-flag'

<CountryName countryCode={'AG'} />

  // Antigua and Barbuda
1.1.4

9 months ago

1.1.3

9 months ago

1.1.2

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago

1.0.0

9 months ago