mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-10 09:12:46 +08:00
[ReactNative] Replace all the call sites of mergeInto by Object.assign
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user