UNPKG

react-native-esp-smartconfig

Version:

ESP-TOUCH protocol to seamlessly configure Wi-Fi devices connecting to a router.

28 lines (27 loc) 890 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getWifiInfo = getWifiInfo; exports.start = start; exports.stop = stop; var _reactNative = require("react-native"); const LINKING_ERROR = `The package 'react-native-esp-smartconfig' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; const EspSmartconfig = _reactNative.NativeModules.EspSmartconfig ? _reactNative.NativeModules.EspSmartconfig : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); function start(args) { return EspSmartconfig.start(args); } function stop() { return EspSmartconfig.stop(); } function getWifiInfo() { return EspSmartconfig.getWifiInfo(); } //# sourceMappingURL=index.js.map