| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 26-Sep-2023 | - | ||||
| android/ | H | 26-Sep-2023 | - | 538 | 419 | |
| build/ | H | 26-Sep-2023 | - | 270 | 94 | |
| ios/ | H | 26-Sep-2023 | - | 172 | 141 | |
| src/ | H | 26-Sep-2023 | - | 165 | 60 | |
| .eslintrc.js | H A D | 26-Sep-2023 | 103 | 3 | 1 | |
| .npmignore | H A D | 26-Sep-2023 | 183 | 12 | 8 | |
| CHANGELOG.md | H A D | 26-Sep-2023 | 4.7 KiB | 149 | 75 | |
| README.md | H A D | 26-Sep-2023 | 1.7 KiB | 45 | 30 | |
| babel.config.js | H A D | 26-Sep-2023 | 104 | 3 | 1 | |
| expo-module.config.json | H A D | 26-Sep-2023 | 194 | 11 | 10 | |
| package.json | H A D | 26-Sep-2023 | 1 KiB | 40 | 39 | |
| tsconfig.json | H A D | 26-Sep-2023 | 217 | 10 | 9 |
README.md
1<p> 2 <a href="https://docs.expo.dev/versions/latest/sdk/network/"> 3 <img 4 src="../../.github/resources/expo-network.svg" 5 alt="expo-network" 6 height="64" /> 7 </a> 8</p> 9Gets device's network information such as ip address, mac address and check for airplane mode. 10 11See [Expo Network docs](https://docs.expo.dev/versions/latest/sdk/network/) for documentation of this universal module's API. 12 13# API documentation 14 15- [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/network.mdx) 16- [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/network/) 17 18# Installation in managed Expo projects 19 20For [managed](https://docs.expo.dev/archive/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/network/). 21 22# Installation in bare React Native projects 23 24For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing. 25 26### Add the package to your npm dependencies 27 28``` 29npx expo install expo-network 30``` 31 32### Configure for Android 33 34This module requires permissions to access the network and Wi-Fi state. The `ACCESS_NETWORK_STATE` and `ACCESS_WIFI_STATE` permissions are added automatically. 35 36```xml 37<!-- Added permissions --> 38<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> 39<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 40``` 41 42# Contributing 43 44Contributions are very welcome! Please refer to guidelines described in the [contributing guide](https://github.com/expo/expo#contributing). 45