Skip to content

Commit

Permalink
Merge pull request #1 from godness84/patch-1
Browse files Browse the repository at this point in the history
Fix unable to load 'Dimensions' package
  • Loading branch information
Joe Ipson committed Apr 18, 2016
2 parents 2bbf884 + 46da51e commit 0a1b36e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
const Dimensions = require('Dimensions');
const windowSize = Dimensions.get('window');

import React, {
PixelRatio,
Platform
Platform,
Dimensions
} from 'react-native';

const windowSize = Dimensions.get('window');

class DetectDeviceService {
constructor() {
this.pixelDensity = PixelRatio.get();
Expand Down

0 comments on commit 0a1b36e

Please sign in to comment.