Skip to content

Conversation

@vmoroz
Copy link
Member

@vmoroz vmoroz commented Apr 27, 2020

Changes to C# Native Module API matching to C++ changes previously done in PR #4721.
This PR replaces use of IReactContext with the new ReactContext struct.
Previously most of the ReactContext methods were implemented as extension methods, In this PR they are replaced as ReactContext instance methods.

Other related changes:

  • Exposed the underlying IReactContext from the ReactContext as ContextAbi property.
  • Exposed the underlying IJSValueWriter from the ReactConstantProvider as Writer property.

The change requires changing signature of all existing ReactInititialzer methods to use ReactContext instead of IReactContext.

Microsoft Reviewers: Open in CodeFlow

@vmoroz vmoroz requested review from a team, NickGerleman and acoates-ms April 27, 2020 04:30
@vmoroz vmoroz requested a review from a team as a code owner April 27, 2020 04:30
@NickGerleman
Copy link
Contributor

@vmoroz do you want this pulled into 62?

@vmoroz
Copy link
Member Author

vmoroz commented Apr 27, 2020

@NickGerleman yes, ideally it should be part of 0.62


In reply to: 619710567 [](ancestors = 619710567)

@vmoroz vmoroz added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Apr 27, 2020
@ghost
Copy link

ghost commented Apr 27, 2020

Hello @vmoroz!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit 51368d0 into microsoft:master Apr 27, 2020
NickGerleman pushed a commit to NickGerleman/react-native-windows that referenced this pull request May 2, 2020
* Added C# ReactContext for Module Initialize method

* Change files

* Fixed sample project compilation
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants