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)