mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 14:53:24 +00:00
refactor to tamagui
This commit is contained in:
15
apps/expo/src/components/FlagIcon.tsx
Normal file
15
apps/expo/src/components/FlagIcon.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Image } from "tamagui";
|
||||
|
||||
// TODO: Improve flag icons. This is incomplete.
|
||||
export function FlagIcon({ languageCode }: { languageCode: string }) {
|
||||
return (
|
||||
<Image
|
||||
source={{
|
||||
uri: `https://flagcdn.com/w80/${languageCode.toLowerCase()}.png`,
|
||||
}}
|
||||
width="100%"
|
||||
height="100%"
|
||||
resizeMode="contain"
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user