📌  相关文章
📜  @react-native-community netinfo - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:28.205000             🧑  作者: Mango

代码示例1
# With Yarn
yarn add @react-native-community/netinfo

# With NPM
npm i @react-native-community/netinfo

# Import 
import {useNetInfo} from '@react-native-community/netinfo';

# Check Connectivity
const netInfo = useNetInfo();