Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPM Updates on Dimensions import issue #21

Closed
ghost opened this issue Mar 18, 2016 · 1 comment
Closed

NPM Updates on Dimensions import issue #21

ghost opened this issue Mar 18, 2016 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 18, 2016

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.

@kkjdaniel
Copy link
Owner

The NPM version will be updated in the upcoming release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant