Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@madeagency/react-native-connection-alert

1.0.12 • Public • Published

react-native-connection-alert

Displays an alert which stays open until the specified network request succeeds

Installation

npm install --save @madeagency/react-native-connection-alert

Usage

Create a development config with Babel support, dev server, HMR and PostCSS autoprefixer:

import ConnectionAlert from '@madeagency/react-native-connection-alert'
 
async function fetchWhenConnected(input: string, init: any) {
  try {
    return await fetch(...arguments)
  } catch(error) {
    return await ConnectionAlert.fetch(...arguments)
  }
}

Install

npm i @madeagency/react-native-connection-alert

DownloadsWeekly Downloads

5

Version

1.0.12

License

ISC

Last publish

Collaborators

  • avatar