Skip to content

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

@albarzanji

Description

@albarzanji

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions