Skip to content

Latest commit

 

History

History
12 lines (7 loc) · 257 Bytes

useNetInfo.md

File metadata and controls

12 lines (7 loc) · 257 Bytes

useNetInfo

React Native API 🎣 that adds an event listener to NetInfo. Also, this will return the initial state from NetInfoInfo.fetch().

Usage

import {useNetInfo} from 'react-native-use'

const isConnected = useNetInfo();