# react-native-country-flag-icon

> This is a React-Native package to display every 254 Country flags with the ISO 3166-1 alpha-2 Standard! But teeny tiny icon sized images!

Latest version **1.2.5** (published 2023-04-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-native-country-flag-icon
pnpm add react-native-country-flag-icon
yarn add react-native-country-flag-icon
bun add react-native-country-flag-icon
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.5 |
| Published | 2023-04-14 |
| First published | 2023-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 896 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | David Brookes |
| Maintainers | dbrookesspc |
| Keywords | React-Native, Country, Flags, Flag, ISO, icon |

## Links

- npm: https://www.npmjs.com/package/react-native-country-flag-icon
- Repository: https://github.com/dbrookesSPC/react-native-country-flag-icon
- Homepage: https://github.com/dbrookesSPC/react-native-country-flag-icon.git
- Issues: https://github.com/dbrookesSPC/react-native-country-flag-icon/issues
- npm.io page: https://npm.io/package/react-native-country-flag-icon

## Alternatives

- [@fortawesome/react-fontawesome](https://npm.io/package/@fortawesome/react-fontawesome.md) — 2.2M weekly downloads
- [roboto-fontface](https://npm.io/package/roboto-fontface.md) — 196.0K weekly downloads
- [@react-native-vector-icons/common](https://npm.io/package/@react-native-vector-icons/common.md) — 150.4K weekly downloads
- [stockfish](https://npm.io/package/stockfish.md) — 27.0K weekly downloads
- [@procore/core-icons](https://npm.io/package/@procore/core-icons.md) — 4.6K weekly downloads

## Recent versions

- 1.2.5 (latest) — 2023-04-14
- 1.2.4 — 2023-04-14
- 1.2.3 — 2023-04-14
- 1.2.2 — 2023-04-14
- 1.2.1 — 2023-04-14
- 1.2.0 — 2023-04-14

## README

# react-native-country-flag-icon

This is a React-Native package to display every 254 Country flags with the [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Standard!

Credit to the original author of this package, I just forked to make them smaller: https://github.com/YannisHofmann/react-native-country-flag

[![NPM](https://img.shields.io/npm/v/react-native-country-flag-icon.svg)](https://www.npmjs.com/package/react-native-country-flag-icon)

## Install

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

## Usage

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

```jsx
import CountryFlag from "react-native-country-flag-icon";

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

You can only use the [ISO 3166-1 alpha-2 Standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) for the isoCode property.

## Props

| Prop    |       Type        |                                                    Desciption                                                    |
| ------- | :---------------: | :--------------------------------------------------------------------------------------------------------------: |
| isoCode |      String       | Define the country flag with the [ISO 3166-1 alpha-2 Standard](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). |
| size    |      Integer      |Define the size from the country flag.                                            |
| style   |    Stylesheet     |Customize the style from the `CountryFlag` component.                             |                              

## License

MIT © [David Brookes](https://github.com/dbrookesSPC)

---
_Source: https://npm.io/package/react-native-country-flag-icon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
