Open leon0399 opened 1 year ago
@leon0399 Your react component is using the older NavigationView
and friends (the type from Windows.UI.Xaml), whereas your native component is using it from Microsoft.UI.Xaml (WinUI 2). In order to use the type from MUX in RNX, you have to use WinUI.NavigationView
and friends
Thank you so much!
In order to use the type from MUX in RNX, you have to use
WinUI.NavigationView
and friends.
I think it is worth mentioning in the docs. Or it is just me just missed this?
@asklar do we project both the WUX vs. MUX version of the NavigationView? https://github.com/asklar/react-native-xaml/blob/main/USAGE.md#navigationview
If there are two different versions that seems like something we should clarify in the docs.
@chrisglein yeah we should clarify it in the docs. We project all xaml controls in WUX and any additional metadata, which by default includes MUXC. Feel free to reuse this issue to mean "update the docs".
Problem Description
on the left is a purely native component, and on the right is react component
Steps To Reproduce
different-navigatioin-components
Expected Results
Exact same compnents
Environment