-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
react-native-windows interop with WinUI 3.0 #2492
Comments
An expansion on 2. would be to make sure that any Windows, separate npm components installed into a React Native project, use WinUI where it makes sense to. For example if we make a react-native-windows-progressbar, it's using a WinUI progress bar as well - not only the components in react-native-windows. |
WinUI3 alpha exists, enabling us to begin investigation into this. It's likely that there will be gaps and roadblocks, and that many of those won't be clear until we have an app targeting this. So it seems like we would potentially want to create a branch and separate nuget preview for this so we can solicit feedback. As that it may be floating in pre-release for awhile we may also need a mechanism for supporting both side by side (namespace macros?). |
Accrues towards #2492 Migrates RN code to straddle OS XAML and WinUI 3 (MUX/MUC)+WebView2 Creates a WinUI3 build config which is "build with WinUI3 in Debug". This is handled by: specifying both WinUI 2.x and 3.0 Alpha in packages.config, conditionally including one or the other props/targets based on a flag that is set (UseWinUI3) In code the UseWinUI3 flag is translated into the USE_WINUI3 macro which dictates a number of things: XAML and Comp namespaces, as well as whether to use WebView or WebView2. This build configuration is added to the PR CI. Once we validate all our partners are ok with WinUI3 we can flip the switch and make this the default. In the meantime this allows us to validate the approach as well as make sure our code doesn't rot out of being WinUI-friendly.
@asklar I think at this point we can close this issue, agree? As in we've graduated on to more specific issues. |
With the planned upcoming release of WinUI 3.0 which will be the next version of the native Windows UI platform, it seems worth considering:
react-windows-native core using WinUI instead of the older version of Windows::UI::Xaml
enabling using WinUI controls in native UI components/views
The text was updated successfully, but these errors were encountered: