Skip to content

Conversation

@acoates-ms
Copy link
Contributor

@acoates-ms acoates-ms commented May 13, 2020

This moves the playground-win32 project from ReactUwp to Microsoft.ReactNative.

#4919 is required to actually be able to run playground-win32, as it fixes a crash in AttachBackHandlers which hits Xaml Islands on boot.

Fixes #3854

Microsoft Reviewers: Open in CodeFlow

@acoates-ms acoates-ms requested a review from a team as a code owner May 13, 2020 21:26
auto cmbEngines = GetDlgItem(hwnd, IDC_JSENGINE);
int itemIndex = (int)SendMessageW(cmbEngines, (UINT)CB_GETCURSEL, (WPARAM)0, (LPARAM)0);
self->m_jsEngine = static_cast<react::uwp::JSIEngine>(itemIndex);
// auto cmbEngines = GetDlgItem(hwnd, IDC_JSENGINE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intentional? Other places you commented on why it was commented out.

SendMessageW(cmbEngines, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)TEXT("Hermes"));
SendMessageW(cmbEngines, (UINT)CB_ADDSTRING, (WPARAM)0, (LPARAM)TEXT("V8"));
SendMessageW(cmbEngines, CB_SETCURSEL, (WPARAM) static_cast<int32_t>(self->m_jsEngine), (LPARAM)0);
// SendMessageW(cmbEngines, CB_SETCURSEL, (WPARAM) static_cast<int32_t>(self->m_jsEngine), (LPARAM)0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentional? Other places you commented on why it was commented out.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly because I expect this functionality to come back soon as we add support for switching engines to the public API.

@NickGerleman
Copy link
Contributor

What was the plan re: RNTester AsyncStorage dependency, or does that just work right now?

break;
case winrt::Microsoft::ReactNative::RedBoxErrorType::Native:
OutputDebugStringA("Native Error: ");
break;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider using the functionality provided by cdebug.h

@acoates-ms acoates-ms added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label May 15, 2020
@ghost
Copy link

ghost commented May 15, 2020

Hello @acoates-ms!

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 146f224 into microsoft:master May 15, 2020
@acoates-ms acoates-ms deleted the msrnPlayWin32 branch May 21, 2020 17:14
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.

Migrate packages/playground to Microsoft.ReactNative

6 participants