Skip to content

Instantly share code, notes, and snippets.

@sieder
sieder / fetching.js
Last active September 23, 2019 08:25
import React, { useEffect, useState } from 'react'
import { View, Text, FlatList, StyleSheet, TouchableOpacity, Button, Image } from 'react-native'
import { SliderBox } from 'react-native-image-slider-box'
const fetchJson = async (url) => {
const response = await fetch(url)
const json = await response.json()
// data = await json
console.log(json)
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY [duplicate]
Solution : sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 23E7166788B63E1E
adduser user_name
usermod -aG sudo user_name