React Native component for country flags.
yarn add @ckbab/react-native-flag
This package depends on react-native-svg
so you need to install it as well.
import Flag from "@ckbab/react-native-flag";
// Use country codes such as "SE", "GB", "DK"...
<Flag code="SE" />
<Flag code="SE" size={48} />
Name | Type | Default value |
---|---|---|
code |
string |
- |
size |
number |
32 |
style |
StyleSheet |
- |