1.0.9 • Published 5 years ago

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

Weekly downloads
13
License
MIT
Repository
-
Last release
5 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

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago