diff --git a/package.json b/package.json index f640372..3813d17 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "react-native-screens": "~2.2.0", "react-native-unimodules": "~0.8.1", "react-native-web": "^0.11.7", - "react-native-web-swiper": "^2.1.1", "zipcodes": "^8.0.0" }, "devDependencies": { diff --git a/src/api/firebase/index.js b/src/api/firebase/index.js index 9df6a7e..a980b08 100644 --- a/src/api/firebase/index.js +++ b/src/api/firebase/index.js @@ -10,12 +10,15 @@ import config from './config'; firebase.initializeApp(config); // firebase.analytics(); +// Uncomment this while running firebase emulator. +if (process.env.NODE_ENV === 'development') { + firebase.firestore().settings({ + host: 'localhost:8080', + ssl: false, + }); +} + // Export firebase stuff. export const { auth, firestore, storage, functions } = firebase; -// Uncomment this while running firebase emulator. -// if (process.env.NODE_ENV === 'development') { -// firebase.functions().useFunctionsEmulator('http://localhost:5001'); -// } - export default firebase; diff --git a/src/components/Jobs/index.js b/src/components/Jobs/index.js index 4cfa099..0234fec 100644 --- a/src/components/Jobs/index.js +++ b/src/components/Jobs/index.js @@ -1,20 +1,19 @@ -import React, { useEffect } from 'react'; +import React from 'react'; import { StyleSheet, Text, View } from 'react-native'; import { Button } from 'react-native-elements'; import * as WebBrowser from 'expo-web-browser'; import { AppContext } from '../../context'; const JOBS_URL = 'https://bit.ly/covid19-contact-tracers'; +const TRAINING_URL = + 'https://www.coursera.org/learn/covid-19-contact-tracing?edocomorp=covid-19-contact-tracing'; const Jobs = () => { const { t } = React.useContext(AppContext); - useEffect(() => { - // openBrowser(); - }, []); - const openBrowser = async () => { + const openBrowser = async (url) => { try { - await WebBrowser.openBrowserAsync(JOBS_URL); + await WebBrowser.openBrowserAsync(url); } catch (error) { console.log(error); } @@ -22,11 +21,28 @@ const Jobs = () => { return ( + + What is Contact Tracing? + + + Contact tracing is the process of identification of persons who may + have come into contact with an infected person and subsequent + collection of further information about these contacts. To learn more + about contact tracing, you can complete the COVID-19 Contact Tracing + below. + + +