Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Seven Lines of React Native Code to Show a Stock Price Alert
// Credit to:
async function showAppleStockPriceAsync() {
let url = ''
let response = await fetch(url)
let body = await response.json()
let { AlertIOS } = require('react-native')
AlertIOS.alert(body.Symbol, '$' + body.LastPrice)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment