JSPM

react-native-local-only-hotspot

1.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q27508F
  • License MIT

React Native module to start local only hotspot for coonecting with other devices

Package Exports

  • react-native-local-only-hotspot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-native-local-only-hotspot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-native-local-only-hotspot

This is a react native module to start a local-only hotspot on android devices running android 8 and above

Getting started

$ npm install react-native-local-only-hotspot --save

Usage

import LocalOnlyHotspot from 'react-native-local-only-hotspot';

// To start the local-only-hotspot
LocalOnlyHotspot.start(onSuccess,onFailure)
//onSuccess we get a jsonobject with ssid and secret
LocalOnlyHotspot.stop(onStop)
//onStop we get a sting 'Stopped'
LocalOnlyHotspot.getConfig(onData)
//onData we get a jsonobject with ssid and secret

Refer to example.js for sample code