1.0.9 • Published 6 years ago

@quantfive/react-native-connectivity-banner v1.0.9

Weekly downloads
13
License
MIT
Repository
-
Last release
6 years ago

React Native Connectivity Banner

Demo

For 2G & 3G Connection

npm.io

For No Connection

npm.io

Install the Package

Use NPM or Yarn

yarn add @quantfive/react-native-connectivity-banner
npm install --save @quantfive/react-native-connectivity-banner

Usage

  1. Require @quantfive/react-native-connectivity-banner after installation
import { ConnectivityBanner } from '@quantfive/react-native-connectivity-banner'
  1. Insert the component into your code
render() {
  return (
    <View> 
      <ConnectivityBanner />
    </View>
  )
}

Main Options

OptionTypeDescription
intervalIntegerIn milliseconds, determines how often the component will check the state of the device's connection. Defaults to 2000ms.
messagesObject{ notConnected: String, lowConnectivity: String} Customize the message you want to display to users
styleOverrideObjectPass a style object to override or customize component's style
1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago