Skip to content Skip to sidebar Skip to footer

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 no

Solution 1:

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 :)

Solution 2:

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.

Post a Comment for "Deviceinfo Native Module Is Not Installed Correctly In React Native"