react-native-flags-typescript
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

react-native-flags

Country flags for React Native in typescript!

Based on the work from frostney/react-native-flags. Many thanks!

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

Package Sidebar

Install

npm i react-native-flags-typescript

Weekly Downloads

174

Version

1.0.1

License

MIT

Unpacked Size

2.49 MB

Total Files

2618

Last publish

Collaborators

  • wqqafnd