react-native-tethering icon indicating copy to clipboard operation
react-native-tethering copied to clipboard

TypeError: 0, _hotspot.isHotspotEnabled is not a function (it is undefined)

Open albarzanji opened this issue 2 years ago • 3 comments

i just add permission

"android": { "adaptiveIcon": { "foregroundImage": "./assets/adaptive-icon.png", "backgroundColor": "#ffffff" }, "permissions": [ "ACCESS_FINE_LOCATION", "ACCESS_COARSE_LOCATION", "WRITE_SETTINGS", "NEARBY_WIFI_DEVICES" ] },

and than, in my app.js import { isHotspotEnabled } from '@react-native-tethering/hotspot';

and inside useEffect: let hotspotStatus = await isHotspotEnabled(); console.log("hotspotStatus", hotspotStatus)

and got TypeError: 0, _hotspot.isHotspotEnabled is not a function (it is undefined)

albarzanji avatar Nov 11 '23 23:11 albarzanji

what's your android version?

aboozaid avatar Nov 12 '23 09:11 aboozaid

12 and 13

albarzanji avatar Nov 12 '23 20:11 albarzanji

Could you please try the example on the repo and let me know?

aboozaid avatar Nov 16 '23 09:11 aboozaid