Created
September 18, 2020 00:49
-
-
Save forrestwilkins/40f912cd39772cf4a155c0bdb1950d67 to your computer and use it in GitHub Desktop.
onPress
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
onPress={() => { | |
let request = { | |
"method": "POST", | |
"headers": { | |
"Content-Type": "application/json", | |
}, | |
"body": JSON.stringify( | |
{ | |
"lat": 69.6969, | |
"lng": -69.6969, | |
} | |
)} | |
fetch('http://127.0.0.1:8000/coords/', request) | |
}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment