@ckbab/react-native-flag

1.0.3 • Public • Published

react-native-flag

React Native component for country flags.

Installation

yarn add @ckbab/react-native-flag

This package depends on react-native-svg so you need to install it as well.

Usage

import Flag from "@ckbab/react-native-flag";

// Use country codes such as "SE", "GB", "DK"...

<Flag code="SE" />

<Flag code="SE" size={48} />

Properties

Name Type Default value
code string -
size number 32
style StyleSheet -

Dependents (0)

Package Sidebar

Install

npm i @ckbab/react-native-flag

Weekly Downloads

11

Version

1.0.3

License

ISC

Unpacked Size

519 kB

Total Files

262

Last publish

Collaborators

  • marcus.chr