Please provide the following:
- SDK Version: 49
- Platforms(Android/iOS/web/all): Web, Android and iOS
Hook state is undefined.
export default function NoInternet() {
const { network, updateNetwork } = useState(false);
useEffect(() => {
updateNetwork(true); //This method is undefined
console.log(network); //This return undefined
}, []);
return <View>
<Text>{network? "Internet is working": "Please check your internet."}</Text>
</View>
}