All Projects → frostney → react-native-flags

frostney / react-native-flags

Licence: MIT license
🏁 Fun with flags (in React Native)!

Programming Languages

javascript
184084 projects - #8 most used programming language
objective c
16641 projects - #2 most used programming language
python
139335 projects - #7 most used programming language
java
68154 projects - #9 most used programming language

react-native-flags

Fun with flags (in React Native)!

Display flags in React Native with the help of GoSquared - 2600 Flag Icon Set.

Usage

import Flag from 'react-native-flags';

const JustAFlag = () =>
  <Flag
    code="DE"
    size={32}
  />

### Props

code

Type: String

The ISO code of a flag, for example "DE", "FR" or "GB"

type

Type: String (Allowed values: flat or shiny)

Default value: shiny

Display the flags shiny or flat

size

Type: number (Allowed values: 16, 24, 32, 48 or 64)

Default value: 64

The size of a flag in points.

style (optional)

Allows additional styles to be passed through.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].