Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

react-native-network-bandwith-speed

AsbarAli2.8kMIT3.0.0

Check Internet speed in react native

react-native, react, networkbandwith, download-speed, check-internet-download-speed, Asbar, Suhail

readme

react-native-network-bandwidth-speed

Easily check for network bandwidth speed in React Native

Install

$ npm install react-native-network-bandwith-speed --save

or if you're using yarn,

$ yarn add react-native-network-bandwith-speed

Quick Start

import { measureConnectionSpeed } from 'react-native-network-bandwith-speed';

  getNetworkBandwidth = async (): Promise<void> => {
    try {
      const networkSpeed: NetworkBandwidthTestResults = await measureConnectionSpeed();
      console.log(networkSpeed); // Network bandwidth speed 
    } catch (err) {
      console.log(err);  
    }
  }

props

  • ImageURI: Any image URI of an 1.5 Mb image,if not provided default image URI would be used.

Milestones

  • <input disabled="" type="checkbox"> Add demo app
  • <input disabled="" type="checkbox"> Improve npm docs
  • <input checked="" disabled="" type="checkbox"> Add CONTRIBUTING.md
  • <input disabled="" type="checkbox"> Add CODE_OF_CONDUCT.md
  • <input disabled="" type="checkbox"> Add CHANGELOG
  • <input disabled="" type="checkbox"> Speed tests for download/upload

Contributor guidelines

  • Fork the repository.
  • Clone the forked repository.
  • Create your own branch.
  • Create a pull request with changes made.

License

MIT