microsoft / microsoft/react-native-windows

react-native-device-info does not seem to handle new architecture for windows

Open
#14,341 5 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

enhancement Extensions External New Architecture Workstream: Module Support
Dominant language
C++
Stars
17.3k
Forks
1.2k
Avg merge
1d 13h
Merged PRs (30d)
33

Description

Problem Description

A friendly Microsoft person mentioned in react-native-permissions (https://github.com/zoontek/react-native-permissions/issues/925) that they may be able to help with react-ntive-windows implementations of some important modules

Historically there was help from Microsoft getting react-native-device-info working, and I'll admit (as maintainer) I need the help for New Arch as well - related issue: https://github.com/react-native-device-info/react-native-device-info/issues/1687

Steps To Reproduce
  1. Install react-native-windows 0.76+ with new arch enabled
  2. add react-native-device-info
  3. Sad developer 😆

I am deliberately being pretty brief about reproduction details because I believe it's trivial to reproduce, but I'm the maintainer - I expect to collaborate on the related issue

I will also apologize in advance for the very very out of date example app in repo, haven't had time to fix it

Expected Results

Working compile

CLI version

15 reproduces it

Environment
npx @react-native-community/cli info

Everything current as of this typing will reproduce - that's 0.77.0 and current version of react-native-device-info
Community Modules

react-native-device-info

Target Platform Version

None

Target Device(s)

Desktop

Visual Studio Version

None

Build Configuration

None

Snack, code example, screenshot, or link to a repository

No response

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.