- Initialized ExpressJS project as per this gist
project-root
├── node_modules
├── package-lock.json
import React, { useState, useEffect } from "react"; | |
import { | |
StyleSheet, | |
Text, | |
View, | |
ActivityIndicator, | |
Alert, | |
Button, | |
} from "react-native"; | |
import * as Location from "expo-location"; |
project-root
├── node_modules
├── package-lock.json
.send()
. It dynamically sets Content-Type
headers to match the data it sends..json()
or .send()
.
.json()
is likely less confusing.json()
uses .send()
under the hood so the resulting HTTP headers are the same.