diff --git a/Libraries/Components/StatusBar/StatusBar.js b/Libraries/Components/StatusBar/StatusBar.js index 628bd67b6de..e07389c9723 100644 --- a/Libraries/Components/StatusBar/StatusBar.js +++ b/Libraries/Components/StatusBar/StatusBar.js @@ -112,14 +112,17 @@ function mergePropsStack( propsStack: Array, defaultValues: Object, ): Object { - return propsStack.reduce((prev, cur) => { - for (const prop in cur) { - if (cur[prop] != null) { - prev[prop] = cur[prop]; + return propsStack.reduce( + (prev, cur) => { + for (const prop in cur) { + if (cur[prop] != null) { + prev[prop] = cur[prop]; + } } - } - return prev; - }, Object.assign({}, defaultValues)); + return prev; + }, + {...defaultValues}, + ); } /** diff --git a/Libraries/Inspector/ElementBox.js b/Libraries/Inspector/ElementBox.js index 8c12ca73ebd..001effee47c 100644 --- a/Libraries/Inspector/ElementBox.js +++ b/Libraries/Inspector/ElementBox.js @@ -102,7 +102,7 @@ type Style = { * @return a modified copy */ function resolveRelativeSizes(style: $ReadOnly