Skip to content

Instantly share code, notes, and snippets.

showCamera = async () => {
this.setState({
cameraClicked: true
});
setTimeout(() => {
this.setState({
cameraClicked: false
});
}, 8000);
// Inputs
// location: location object
// distance: array of distances in meters
getMultipleAddressesFromApi = {location, distance} => {
pointsHolder = [];
// Earth's radius
R = 6371000;
// Array of radians
radiansArray = [
0,
import React, { Component } from "react";
import {
ActivityIndicator,
FlatList,
StatusBar,
Text,
TouchableHighlight,
View
} from "react-native";
import EStyleSheet from "react-native-extended-stylesheet";