Skip to content
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

Support min version from rs3 to rs2 #2399

Closed
wants to merge 2 commits into from
Closed

Conversation

licanhua
Copy link
Contributor

@licanhua licanhua commented May 3, 2019

Partial implementation for issue #2366, and I don't have any automation testing and don't implement any pipeline yet.

  1. min version to rs2
  2. Fix crashes for textbox.
  3. sync the bundle file.

I manually verified React.Windows.Universal.SampleApp on rs2.

We have several ways to check if os supports interface or not from code:

  1. winrt::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Controls.Control", L"CornerRadius")
  2. winrt::ApiInformation::IsMethodPresent(L"Windows.UI.ViewManagement.ApplicationView", L"GetDisplayRegions")
  3. winrt::ApiInformation::IsTypePresent(L"Windows.UI.Xaml.Media.ThemeShadow")
  4. winrt::ApiInformation::IsApiContractPresent(L"Windows.Foundation.UniversalApiContract", APIVersion);
  5. textBox.try_as<winrt::ITextBlock6>()

Here I just choose the last one.

Microsoft Reviewers: Open in CodeFlow

@licanhua licanhua requested a review from a team as a code owner May 3, 2019 03:32
@ghost ghost added the rnwcpp label May 3, 2019
@licanhua
Copy link
Contributor Author

licanhua commented May 3, 2019

Delete branch and will try from fork repo

@licanhua licanhua closed this May 3, 2019
@licanhua licanhua deleted the user/canli/sdkversion branch May 3, 2019 03:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant