Skip to content

React Native Windows support #1007

Closed
Closed
@ruslan-bikkinin

Description

@ruslan-bikkinin

Some time ago experimental support for React native Windows was introduced and at that moment debuging of both UWP and WPF platforms were added. Since that time no further work were continued.
Currently, React Native Windows has two main implementations: "current" which is C#-made and will be cosidered as deprecated in the future and "vnext" which is targeted to future React Native versions and will be rewritten in C++ to engage new RN architectural features such as JSI (react-native-community/discussions-and-proposals#91).
Here are the list of things that must be done to support newer React Native Windows versions that were made after retesting extension for RNW apps ("react-native-windows": "^0.58.0-vnext.101"):

  • On "Debug UWP" scenario packager throws mutliple Error: jest-haste-map: Haste module naming collision: for "vnext" UWP app

Reproduction steps:

git clone git@github.com:ruslan-bikkinin/rnw_app_058.git
cd rnw_app_058
npm i
  • Install VS Code, then install "React Native Tools" extension
  • Open rnw_app_058 directory in VS Code
  • Press "Debug" button
  • Select Attach to packager debug configuration in drop down list and press play button
  • Eventually, attach process will stuck.
  • Endpoint for bundle has been changed from localhost:8081/index.bundle?platform=windows to App.windows.bundle?platform=uwp (Issue tracked here on RNW)
  • The debugger cannot attach to the application in launch scenario immediately after building the application (possibly connected with the fact that RNW application don't waits the debugger to attach and shows errors on application start up because debugger is not attached)
  • The RNW application generates app.bundle instead of index.bundle, this causes a prewarming issues
  • Couldn't run "current" UWP app due to several Couldn't find source file errors while running react-native run-windows (Need help from RNW team) Support for "current" is going away. Is there any documentation about this?
  • Couldn't add WPF platform on new RNW version because looks like it's not supported yet (Need clarifications from RNW team) WPF support is going to be dropped off. Is there any documentation about this?
  • "Attach to packager" scenario doesn't work (Need investigation)

Reproduction steps:

git clone git@github.com:ruslan-bikkinin/rnw_app_058.git
cd rnw_app_058
npm i
  • Start app
react-native run-windows
  • Wait until Chrome debugger-ui tab is opened and app is loaded, then close Chrome tab
  • Install VS Code, then install "React Native Tools" extension
  • Open rnw_app_058 directory in VS Code
  • Press "Debug" button
  • Select Debug UWP debug configuration in drop down list and press play button
  • Eventually, you will see errors in Debug Console window
  • "Show Dev Menu", "Reload app" command palate commands aren't supported. Once issue 2276 is fixed we can fix this.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions