mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-03-26 07:04:05 +08:00
Updates from Mon Mar 2
- [ReactNative] Move merge & mergeInto from downstream to vendor | Christopher Chedeau - [ReactNative] Replace all the call sites of mergeInto by Object.assign | Christopher Chedeau - [WIP] Migrated View Managers over to new architecture | Nick Lockwood - [ReactNative] Replace all the call sites of copyProperties by Object.assign | Christopher Chedeau - [ReactNative] Migrate navigator.geolocation to open source | Christopher Chedeau - [ReactNative] Remove README.md, LICENSE and .travis.yml from fbobjc | Christopher Chedeau - [react-packager] Better transform errors | Amjad Masad - [React Native][react-packager] Fix test runner and fialing tests | Amjad Masad
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