This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint-disable prettier/prettier */ | |
import React, {useEffect, useState} from 'react'; | |
import { | |
SafeAreaView, | |
StyleSheet, | |
Text, | |
StatusBar, | |
View, | |
Image, | |
FlatList, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect, useState } from 'react'; | |
import { | |
SafeAreaView, | |
Text, | |
} from 'react-native'; | |
import * as cheerio from 'cheerio-without-node-native'; | |
interface MainNumbers { | |
coronavirusCases?: string; | |
deaths?: string; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @format | |
*/ | |
import {AppRegistry} from 'react-native'; | |
import {name as appName} from './app.json'; | |
import React from 'react'; | |
import {SafeAreaView, ScrollView, StatusBar, View} from 'react-native'; | |
import Svg, {Image, Defs, ClipPath, Path, G} from 'react-native-svg'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// USAGE: | |
// mkdir coronavirusAPI && cd coronavirusAPI | |
// yarn init -y | |
// wget https://www.worldometers.info/coronavirus/ | |
// mv index.html sample.html | |
// node index.js | |
var fs = require('fs'); | |
const cheerio = require('cheerio'); | |
const content = fs.readFileSync('sample.html', 'utf8'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { AppRegistry, SafeAreaView, View, Text, TouchableOpacity, Button } from 'react-native'; | |
import { name as appName } from './app.json'; | |
import {Svg, Rect, Path } from 'react-native-svg'; | |
import tailwind from 'tailwind-rn'; | |
const App = () => { | |
return ( | |
<SafeAreaView> | |
<View style={{margin: 5}}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { StatusBar, SafeAreaView, ScrollView, View, Platform } from "react-native"; | |
import colors from "../../res/styles/colors"; | |
import AppBar from "../../components/AppBar"; | |
import spacing from "../../res/styles/spacing"; | |
import { HeaderLarge } from "../../home/shortages/HeaderLarge"; | |
import BarChart, { BarData } from "./BarChart"; | |
import DonutChart from "./DonutChart"; |



This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from "react"; | |
import { ViewStyle, Button } from "react-native"; | |
import Modal from "../components/Modal"; | |
export const App: React.FC = () => { | |
const [isShowing, setShowing] = useState(false); | |
const [text, onChangeText] = useState(""); | |
return ( |