react-native-windows icon indicating copy to clipboard operation
react-native-windows copied to clipboard

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

Open mikehardy opened this issue 11 months ago • 5 comments

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

mikehardy avatar Feb 05 '25 22:02 mikehardy

Hey Mike! Thanks for filing this - I have been working on adding New Arch support for other community modules, and can work on adding New Arch support for react-native-device-info. We only have new arch support for more recent versions of RNW - the first step would be to upgrade ideally to a version >= 76. It looks like the module is currently on 0.67 - is this something that can be upgraded fairly smoothly?

Yajur-Grover avatar Feb 06 '25 21:02 Yajur-Grover

Sorry - just realized that the first step here is for me to get the module itself updated, missed that Let me see what I can do

mikehardy avatar Mar 21 '25 13:03 mikehardy

Still on the todo list, alas

mikehardy avatar Mar 31 '25 18:03 mikehardy

Re-assigning to @sharath2727 as he is taking over ownership of upgrading react-native-device-info.

Yajur-Grover avatar May 07 '25 17:05 Yajur-Grover

Any updates 🙏

karimb11 avatar May 31 '25 17:05 karimb11