Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// @flow
import React from 'react'
import { makeAirship } from 'react-native-airship'
import { AirshipToast } from '../common/AirshipToast.js'
import { AlertDropdown } from '../navigation/AlertDropdown.js'
export const Airship = makeAirship()
/**
* Shows a message & activity spinner tied to the lifetime of a promise.
*/
export function showActivity (message: string, promise: Promise): Promise {
Airship.show(bridge => )
return promise
}
/**
* Shows an error alert to the user.
* Used when some user-requested operation fails.
*/
export function showError (error: mixed) {
console.log(error)