Giter VIP home page Giter VIP logo

react-native-flags's Introduction

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

react-native-flags's People

Contributors

frostney avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

react-native-flags's Issues

Missing Flags

The following flags are missing:

  • Bouvet Island
  • Bonaire
  • French Guiana
  • Heard Island and McDonalds Island
  • British Indian Ocean Territory
  • Saint Pierre and Miquelon
  • Réunion
  • Svalbard and Jan Mayen
  • Sint Marteen
  • U.S. Minor Outlying Islands
  • Kosovo

Some of them do not have separate flags. Bouvet Island has the Norwegian flag. However, others like Kosovo do have a separate flag.

Custom `unknownFlag`

Hi,
it would be useful to be able to pass the fallback for the unknown flag.
For example, in my application I'm using a different flag to indicate "all countries".

It could be a rendering function, or a react component, ...?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.