microsoft / microsoft/react-native-windows

JS API to get/set simple ReactInstance properties via ReactContext

Open
#10,113 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area: Instance Management enhancement Needs: Dev Design Workstream: Component Parity
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

There may be scenarios where you'd want to query (or set) properties of simple types (bool, number, string) from JS, or even a JSValue, to either communicate with a native module, or to inspect the state of the running app. Today this requires a custom native module to do this, however it feels like this should be built in.

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.

Research direction

No file or test is named in the issue. Start by locating ReactContext and the ReactInstance API, then trace how JavaScript currently reaches native modules. Done means a built-in get/set path exists for simple values and JSValue, supporting native-module communication and inspection of running-app state.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, javascript, react-native
Domain
api, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.