Skip to content

nulleof/react-native-flags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-flags

Fun with flags (in React Native)!

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

This repository is a clone of this repo but with reduced functionality. All flags were removed except 16px flat flags for smaller space impact.

Usage

import Flag from 'react-native-flags';

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

### Props

code

Type: String

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

type

Type: String (Allowed values: only flat, it is default and can be omitted)

size

Type: number (Allowed values: only 16 and can be omitted)

Default value: 16

The size of a flag in points.

style (optional)

Allows additional styles to be passed through.

License

MIT

About

🏁 Fun with flags (in React Native)!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 64.5%
  • Objective-C 21.5%
  • Python 8.0%
  • Java 6.0%