[ReactNative] Replace all the call sites of mergeInto by Object.assign
This commit is contained in:
parent
3b11b9d6c3
commit
ea6bfbb7d6
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue