【文件属性】:
文件名称:react-native-netinfo:适用于Android和iOS的React Native Network Info API
文件大小:601KB
文件格式:ZIP
更新时间:2021-02-05 11:47:05
react-native networking network ReactNative
@react-native-community/netinfo
针对Android,iOS,macOS和Windows的React Native Network Info API。 它使您可以获得有关以下方面的信息:
连接类型
连接质量
入门
使用Yarn安装库:
yarn add @react-native-community/netinfo
或npm:
npm install --save @react-native-community/netinfo
使用React Native> = 0.60
不再需要手动链接软件包。
iOS平台:
$ npx pod-install n