From ea6bfbb7d6811b03c616bf037f83894bf96310e8 Mon Sep 17 00:00:00 2001 From: Christopher Chedeau Date: Sun, 1 Mar 2015 16:50:46 -0800 Subject: [PATCH] [ReactNative] Replace all the call sites of mergeInto by Object.assign --- Libraries/Utilities/Dimensions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Libraries/Utilities/Dimensions.js b/Libraries/Utilities/Dimensions.js index 81621fd61..97e8d2d01 100644 --- a/Libraries/Utilities/Dimensions.js +++ b/Libraries/Utilities/Dimensions.js @@ -8,7 +8,6 @@ var NativeModules = require('NativeModules'); var invariant = require('invariant'); -var mergeInto = require('mergeInto'); var dimensions = NativeModules.RKUIManager.Dimensions; @@ -19,7 +18,7 @@ class Dimensions { * @param {object} dims Simple string-keyed object of dimensions to set */ static set(dims) { - mergeInto(dimensions, dims); + Object.assign(dimensions, dims); return true; }