mirror of
https://github.com/status-im/react-native.git
synced 2025-02-25 07:35:25 +00:00
[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…
x
Reference in New Issue
Block a user