N Sharma
N Sharma

Reputation: 34507

DeviceInfo native module is not installed correctly in react native

Hi I am trying to run my react-native android application on the device. It was working well, suddenly I am getting an error on running application.

DeviceInfo native module is not installed correctly

I have checked this DeviceInfo native module is not installed correctly but it did not work for me. I restarted my system to kill all process.

Can anyone help me how to solve this issue ?

enter image description here

D:\React Native\ReduxExample1>react-native -v
react-native-cli: 2.0.1
react-native: 0.44.0

D:\React Native\ReduxExample1>

Upvotes: 1

Views: 2070

Answers (2)

Hardy Android
Hardy Android

Reputation: 865

I think this type of errors when you are not in the right packages. So as per my experience Make sure you have the right packager running in the terminal, sometimes you may have a packager associated with another react native project running, this happens because when you stop running a React Native project from Xcode or Android Studio, it doesn't stop the packager in the terminal, and when you start/open another React Native project in Xcode or Android Studio, it simply checks if a packager is running, doesn't check if it's associated with the current project. So make sure you stop all of the packager instances in the terminal and then open the React Native project again.

Upvotes: 0

N Sharma
N Sharma

Reputation: 34507

I was running different application which is also built in react-native but did not run react-native server of that application. This was just my bad :)

Upvotes: 3

Related Questions