Skip to content

Commit 0a1b36e

Browse files
author
Joe Ipson
committed
Merge pull request #1 from godness84/patch-1
Fix unable to load 'Dimensions' package
2 parents 2bbf884 + 46da51e commit 0a1b36e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
const Dimensions = require('Dimensions');
2-
const windowSize = Dimensions.get('window');
3-
41
import React, {
52
PixelRatio,
6-
Platform
3+
Platform,
4+
Dimensions
75
} from 'react-native';
86

7+
const windowSize = Dimensions.get('window');
8+
99
class DetectDeviceService {
1010
constructor() {
1111
this.pixelDensity = PixelRatio.get();

0 commit comments

Comments
 (0)