You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, when i do npm install on react-native-device-display, i still get the old codes:
var { NativeModules } = require('react-native');
var DeviceUtil = NativeModules.DisplayDeviceUtil;
var Dimensions = require('Dimensions');
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
Which displays the Module not found error. But i can see that this is fixed on Github copy but i'm not getting the update whenever i npm install.
FIX Code:
var {
Dimensions,
RCTDeviceEventEmitter,
NativeModules
} = require('react-native');
var DeviceUtil = NativeModules.DisplayDeviceUtil;
Thanks.
The text was updated successfully, but these errors were encountered:
Hi, when i do npm install on react-native-device-display, i still get the old codes:
var { NativeModules } = require('react-native');
var DeviceUtil = NativeModules.DisplayDeviceUtil;
var Dimensions = require('Dimensions');
var RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
Which displays the Module not found error. But i can see that this is fixed on Github copy but i'm not getting the update whenever i npm install.
FIX Code:
var {
Dimensions,
RCTDeviceEventEmitter,
NativeModules
} = require('react-native');
var DeviceUtil = NativeModules.DisplayDeviceUtil;
Thanks.
The text was updated successfully, but these errors were encountered: