forked from react-native-webview/react-native-webview
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add WebView2 Control Support to Windows (react-native-webview#2304)
* Create ReactNativeWebView2 Project * Adjust Component Name * Update example app * Add WebView Type Toggle * Attempt to Update to 0.65 * Finish Upgrade of Example to 0.65 * Add WinUI Dependency * Update pch.h * Update to WebView2 Control * Finish WebView2 Control Addition * Update README * Remove Remaining WebBridge Methods * Add Event Handling for WebView2 * Remove DefaultBackgroundColor Handling * Fix Type Checks * Fix Example * Address Feedback * Add to packages.config * Fix Package Config * Adjust Packages * Resolve Conflict * Delete NuGet.Config * Delete Package.appxmanifest * Delete example.sln * Delete App.h * Delete .gitignore * Delete App.cpp * Delete App.xaml * Remove Old Example * Update JS to handle Versioned Support * Finish Versioning * Coding Adjustments * Test Appium Id * Alter Test * Fix Appium * Adjust RCT Imports * Adjust Macros * Final Adjustments * Adjust Macros * Delete launch.json * Delete ExperimentalFeatures.props * Fix Spacing * Add CppLib for PkgRef Support * Update docs/Getting-Started.md Co-authored-by: Alexander Sklar <asklar@microsoft.com> * Update docs/Getting-Started.md Co-authored-by: Alexander Sklar <asklar@microsoft.com> * Update docs/Getting-Started.md Co-authored-by: Alexander Sklar <asklar@microsoft.com> * Update docs/Getting-Started.md Co-authored-by: Alexander Sklar <asklar@microsoft.com> * Address JS Feedback * Address Native Feedback * Update Config Instructions * Fix Typo * Restore Package.appxmanifest * Address Feedback * Fix Format * Restore Idl Changes * Address Feedback * Remove AdditionalIncludeDirectories Co-authored-by: Alexander Sklar <asklar@microsoft.com>
- Loading branch information
1 parent
5c49dbc
commit a7d2c66
Showing
25 changed files
with
597 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,4 @@ describe('Alert Tests', () => { | |
expect(dismissMessage).not.toBeNull(); | ||
await driver.quit(); | ||
}); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
import { requireNativeComponent } from "react-native"; | ||
import type { NativeWebViewWindows } from "./WebViewTypes"; | ||
|
||
const RCTWebView: typeof NativeWebViewWindows = requireNativeComponent( | ||
export const RCTWebView: typeof NativeWebViewWindows = requireNativeComponent( | ||
'RCTWebView', | ||
); | ||
|
||
export default RCTWebView; | ||
export const RCTWebView2: typeof NativeWebViewWindows = requireNativeComponent( | ||
'RCTWebView2', | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
||
<!-- Flags can be added here to effect the compilation of Microsoft.ReactNative --> | ||
<PropertyGroup Label="Microsoft.ReactNative Build Flags"> | ||
<UseWinUI3>false</UseWinUI3> | ||
<UseHermes>false</UseHermes> | ||
<WinUI2xVersion>2.8.0-prerelease.210927001</WinUI2xVersion> | ||
<WebView2Version>1.0.1020.30</WebView2Version> | ||
</PropertyGroup> | ||
|
||
</Project> |
Oops, something went wrong.