@react-native-community/netinfo
Advanced tools
Comparing version 8.3.1 to 9.0.0
@@ -0,1 +1,11 @@ | ||
# [9.0.0](https://github.com/react-native-netinfo/react-native-netinfo/compare/v8.3.1...v9.0.0) (2022-06-03) | ||
* fix(windows)!: change WindowsTargetPlatformVersion to 10.0 / drop arm32 / drop rnw < 0.63 (#603) ([16d6568](https://github.com/react-native-netinfo/react-native-netinfo/commit/16d6568)), closes [#603](https://github.com/react-native-netinfo/react-native-netinfo/issues/603) | ||
### BREAKING CHANGES | ||
* needs react-native-windows 0.63+ and MSVC build tools v142+ (Visual Studio 2019+), drop arm32 | ||
## [8.3.1](https://github.com/react-native-netinfo/react-native-netinfo/compare/v8.3.0...v8.3.1) (2022-05-30) | ||
@@ -2,0 +12,0 @@ |
{ | ||
"name": "@react-native-community/netinfo", | ||
"version": "8.3.1", | ||
"version": "9.0.0", | ||
"description": "React Native Network Info API for iOS & Android", | ||
@@ -5,0 +5,0 @@ "react-native": "src/index.ts", |
@@ -64,27 +64,11 @@ | ||
Autolinking works on RNW >= 0.63. If you need to manually link, see the [Manual linking steps for Windows](#manual-linking-windows) below. | ||
Autolinking automatically works on RNW >= 0.63. | ||
<details id='manual-linking-windows'> | ||
<summary>Manually link the library on Windows</summary> | ||
## Minimum supported versions for windows | ||
#### Link to your C++ app (RNW >= 0.62) | ||
* Open the solution in Visual Studio for your Windows apps | ||
* Right click in the Explorer and click Add > Existing Project... | ||
* Navigate to `./<app-name>/node_modules/@react-native-community/netinfo/windows/RNCNetInfoCPP/` and add `RNCNetInfoCPP.vcxproj` | ||
* This time right click on your React Native Windows app under your solutions directory and click Add > Reference... | ||
* Check the `RNCNetInfoCPP` you just added and press ok | ||
* Open `pch.h`, add `#include "winrt/ReactNativeNetInfo.h"` | ||
* Open `App.cpp`, add `PackageProviders().Append(winrt::ReactNativeNetInfo::ReactPackageProvider());` before `InitializeComponent();` | ||
- react-native-windows 0.63 or newer | ||
- MSVC build tools v142 (included in Visual Studio 2019) or newer | ||
- x86, x64, or arm64 are supported, arm (32-bit) is not supported | ||
#### Link C# to your C# app (RNW >= 0.62) | ||
* Open the solution in Visual Studio for your Windows apps | ||
* Right click in the Explorer and click Add > Existing Project... | ||
* Navigate to `./<app-name>/node_modules/@react-native-community/netinfo/windows/RNCNetInfoCPP/` and add `RNCNetInfoCPP.vcxproj` | ||
* This time right click on your React Native Windows app under your solutions directory and click Add > Reference... | ||
* Check the `RNCNetInfoCPP` you just added and press ok | ||
* Open up `App.xaml.cs` for your app and add `using ReactNativeNetInfo;` to the top. | ||
* Open up `App.xaml.cs` for your app and add `PackageProviders.Add(new ReactNativeNetInfo.ReactPackageProvider());` before `InitializeComponent();` | ||
</details> | ||
## React Native Compatibility | ||
@@ -91,0 +75,0 @@ To use this library you need to ensure you are using the correct version of React Native. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
491246
411