diff --git a/android/app/build.gradle b/android/app/build.gradle
index 83a5ffb..93fbc59 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -138,7 +138,7 @@ android {
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 3
- versionName "3.1.1"
+ versionName "3.2.0"
}
splits {
abi {
diff --git a/package.json b/package.json
index d847e9c..88862ba 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "Covid19",
- "version": "3.1.1",
+ "version": "3.2.0",
"private": true,
"scripts": {
"android": "npx react-native run-android",
diff --git a/src/components/Svgs/Github.tsx b/src/components/Svgs/Github.tsx
index f550aa3..ceab6a5 100644
--- a/src/components/Svgs/Github.tsx
+++ b/src/components/Svgs/Github.tsx
@@ -7,7 +7,7 @@ const SvgGithub = (props: SvgProps) => {
width={24}
height={24}
fill="none"
- stroke="currentColor"
+ stroke="black"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
diff --git a/src/components/Svgs/Vaccine.tsx b/src/components/Svgs/Vaccine.tsx
new file mode 100644
index 0000000..2f5b754
--- /dev/null
+++ b/src/components/Svgs/Vaccine.tsx
@@ -0,0 +1,28 @@
+import * as React from 'react'
+import Svg, { SvgProps, G, Path, Defs, ClipPath } from 'react-native-svg'
+
+const SvgVaccine = (props: SvgProps) => {
+ return (
+
+ )
+}
+
+export default SvgVaccine
diff --git a/src/components/Svgs/index.tsx b/src/components/Svgs/index.tsx
index baa5f09..bdf393d 100644
--- a/src/components/Svgs/index.tsx
+++ b/src/components/Svgs/index.tsx
@@ -1 +1,2 @@
export { default as Github } from './Github'
+export { default as Vaccine } from './Vaccine'
diff --git a/src/rawVaccine.ts b/src/rawVaccine.ts
new file mode 100644
index 0000000..a259a10
--- /dev/null
+++ b/src/rawVaccine.ts
@@ -0,0 +1,8 @@
+export type VaccineDataObject = {
+ [key: string]: any
+}
+const vaccineData: VaccineDataObject = {
+ india: 'https://www.cowin.gov.in/home'
+}
+
+export default vaccineData
diff --git a/src/screens/HomeScreen.tsx b/src/screens/HomeScreen.tsx
index 8056580..fa2777e 100644
--- a/src/screens/HomeScreen.tsx
+++ b/src/screens/HomeScreen.tsx
@@ -13,7 +13,7 @@ import {
import { View as MotiView } from 'moti'
// importing components
-import { Github } from '../components/Svgs/index'
+import { Github, Vaccine } from '../components/Svgs/index'
import SafeAreaView from '../components/SafeAreaView'
import Country from '../components/Country'
import CandleCharts from '../components/CandleCharts'
@@ -24,6 +24,9 @@ import { updateData } from '../reducers/DataReducer'
// importing API functions
import getCovidData from '../API/functions/getCovidData'
+// importing raw vaccine site data
+import vaccineData from '../rawVaccine'
+
// import common style
import Styles from '../Styles'
@@ -42,25 +45,57 @@ const HomeScreen = (props: any) => {
return (
- Linking.openURL('https://github.com/sarthakpranesh/Covid19')}
>
-
-
+ onPress={() => Linking.openURL('https://github.com/sarthakpranesh/Covid19')}
+ >
+
+
+ {
+ Object.keys(vaccineData).includes(country.toLowerCase()) ? (
+ Linking.openURL(vaccineData[country.toLowerCase()])}
+ >
+
+
+ ) : null
+ }
+
{
}
const styles = StyleSheet.create({
+ topIconsContainer: {
+ position: 'absolute',
+ top: 10,
+ right: 10,
+ zIndex: 999,
+ display: 'flex',
+ flexDirection: 'row',
+ justifyContent: 'center',
+ alignItems: 'center'
+ },
mainHeaderImage: {
width: 200,
height: 40,