Check Internet speed in react native
npm install react-native-network-bandwith-speed```
$ npm install react-native-network-bandwith-speed --save
or if you're using yarn,
``
$ yarn add react-native-network-bandwith-speed
`
import { measureConnectionSpeed } from 'react-native-network-bandwith-speed';
getNetworkBandwidth = async (): Promise
try {
const networkSpeed: NetworkBandwidthTestResults = await measureConnectionSpeed();
console.log(networkSpeed); // Network bandwidth speed
} catch (err) {
console.log(err);
}
}
``
- [ ] Add demo app
- [ ] Improve npm docs
- [X] Add CONTRIBUTING.md
- [ ] Add CODE_OF_CONDUCT.md
- [ ] Add CHANGELOG
- [ ] Speed tests for download/upload
- Fork the repository.
- Clone the forked repository.
- Create your own branch.
- Create a pull request with changes made.
License
----
MIT