This file contains hidden or 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
| /** | |
| * cleanup_firestore.js | |
| * | |
| * This code is a "node script" used to delete all documents from a Firestore | |
| * collection that are older than a given date. This script can run against | |
| * "the cloud" or the emulator. | |
| * | |
| * The jump point for the script is this line in main(): | |
| * | |
| * await deleteDocs('orders', 'closedDate', '<', new Date('2021/08/31')) |
This file contains hidden or 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 { useEffect, useState } from "react"; | |
| import { useSelector } from "react-redux"; | |
| export const FIRESTORE_META_ID = "__META_ID__"; | |
| /** | |
| * A custom hook to query the "vehicles" top collection of a Firestore database. | |
| * | |
| * @param {Firestore} firestore - instance of firestore, such as you get in props when a parent component is wrapped in `withFirestore()` | |
| * @param {number} pageNum - the current page number to fetch; first page is 0, second page is 1, etc... |
This file contains hidden or 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, useEffect } from "react"; | |
| import { | |
| StyleSheet, | |
| Text, | |
| View, | |
| ActivityIndicator, | |
| Alert, | |
| Button, | |
| } from "react-native"; | |
| import * as Location from "expo-location"; |
NewerOlder