React Native

Country
Flags

Drop-in country flags for React Native apps, with support for over 250 countries and regions. Lightweight and easy to use.

    US flagCN flagIN flagVE flagEU flagDE flagTZ flagPS flagAU flagES flagCH flagBW flagCA flagZA flagJP flagSE flagFR flagEG flagIT flagPL flag

⬇️ Install package

npm install react-native-country-flag

💾 Data

Data required for the countryflag component to work has been completely decoupled from the library. That gives developers the flexibility to better control their app bundle size and let them choose how and when this data is loaded. Data can be:

Usage with remotely Fetched flags

  • Pros: Data fetched only when needed, does not affect your app bundle size
  • Cons: Network latency, doesn’t work offline
import CountryFlag from "react-native-country-flag"; <CountryFlag isoCode="de" size={25} />