Skip to content

fix(windows): simplify app initialization with ReactNativeWin32App#2780

Open
tido64 wants to merge 1 commit into
trunkfrom
tido/windows/use-app-builder
Open

fix(windows): simplify app initialization with ReactNativeWin32App#2780
tido64 wants to merge 1 commit into
trunkfrom
tido/windows/use-app-builder

Conversation

@tido64
Copy link
Copy Markdown
Member

@tido64 tido64 commented May 21, 2026

Description

Simplify app initialization with ReactNativeWin32App

Platforms affected

  • Android
  • iOS
  • macOS
  • visionOS
  • Windows

Test plan

cd packages/example-windows
node ../app/windows/app.mjs
yarn windows

Screenshots

image

@github-actions github-actions Bot added the platform: Windows This affects Windows label May 21, 2026
@tido64 tido64 force-pushed the tido/windows/use-app-builder branch 6 times, most recently from 23363d2 to 3437dfa Compare May 21, 2026 12:26
@tido64 tido64 force-pushed the tido/windows/use-app-builder branch from 3437dfa to 1e98046 Compare May 21, 2026 12:36
switch (source) {
case JSBundleSource::DevServer:
instanceSettings.JavaScriptBundleFile(L"index");
instanceSettings.DebugBundlePath(L"index");
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You should just set DebugBundlePath and JavaScriptBundleFile always. The only think you need to change for lading from DevServer vs Embedded is UseFastRefresh.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Isn't that wrong? UseFastRefresh can be disabled in dev mode if you wish to manually reload. Using it to determine whether to use the embedded JS bundle seems wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

platform: Windows This affects Windows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants