From e3619c01a71acdc3f850f75cd3c1ed02c0eb6bf8 Mon Sep 17 00:00:00 2001 From: jasecoop Date: Wed, 18 Nov 2015 18:43:19 +0000 Subject: [PATCH] Fixes Invalid directory Users/Node_modules/Dimensions This fixes the issue found here https://github.com/jmstout/react-native-viewport-units/issues/4#issuecomment-157808000 --- viewport-units.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/viewport-units.js b/viewport-units.js index 53c5c1a..f056b8b 100644 --- a/viewport-units.js +++ b/viewport-units.js @@ -1,7 +1,7 @@ 'use strict'; var React = require('react-native') - , Dimensions = React.Dimensions || require('Dimensions') + , Dimensions = React.Dimensions , {width, height} = Dimensions.get('window'); var units = { @@ -12,4 +12,4 @@ var units = { units.vmin = Math.min(units.vw, units.vh); units.vmax = Math.max(units.vw, units.vh); -module.exports = units; \ No newline at end of file +module.exports = units;