microsoft / microsoft/react-native-windows

Native module dev experience problems

Open
#5,914 2 comments 0 reactions 1 assignee View on GitHub

@stmoy is already working on this.

Since Sep 8, 2020.

Area: Developer Experience Area: Native Modules bug Workstream: Module Support
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Related: #5910

These are issues not related to "how to write" but still related to the dev experience of NM

  1. First build fails because something #includes a Folly header but Folly hasn’t been downloaded yet. Some inter-project dependency isn’t properly declared.
    A subsequent build succeeds, but this isn’t mentioned in the instructions either.
  2. After creating the module solution, we say:
    If you're writing in C++, you'll want to add Microsoft.ReactNative.Cxx:
    (“…via the Shared projects tab”)
    However that project does not show in the Shared projects tab. Continuing assuming this is not necessary. Is it?
    Oh actually it shows up if I restart Visual Studio…
  3. We should have a way to create the solution with the right references without requiring manual intervention
  4. The list of projects might need to be updated now that we’ve removed some Shared projects
  5. Instructions talk about creating an IDL file but doesn’t tell you how to in the VS UI
  6. Instructions mention to create a new app somewhere else and copy the windows folder over, can this be automated?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.