react-native/Libraries/ReactNative
Janic Duplessis eae4fe810f Improve YellowBox output format
Summary:
YellowBox currently assumes the first arg is a printf like format string, this adds support for any arguments so it works more like console in the browser. This also adds `stringifySafe` to format arguments when using printf style.

The main annoyance that this fixes is when trying to log a single object it will currently print [object Object] instead of the fully stringified version.

**Test plan**

Tested a bunch of different log combinations.

```js
console.warn({test: 'a'}); // {"test":"a"} (was [object Object] before this patch)
console.warn('test %s %s', 1, {}); // test 1 {}
console.warn('test %s', 1, {}); // test 1 {}
console.warn({}, {}, {}, {}); // {} {} {} {}
```
Closes https://github.com/facebook/react-native/pull/16132

Differential Revision: D5973125

Pulled By: yungsters

fbshipit-source-id: fc17105a79473a11c9b1c4728d435fc54fb094bb
2017-10-04 00:00:36 -07:00
..
AppContainer.js Codemod to 1.7.0 2017-09-26 23:45:48 -07:00
AppRegistry.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00
I18nManager.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00
ReactNativeFeatureFlags.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00
UIManager.js Implement lazy discovery for ViewManagers. 2017-09-28 09:55:59 -07:00
UIManagerStatTracker.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00
YellowBox.js Improve YellowBox output format 2017-10-04 00:00:36 -07:00
queryLayoutByID.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00
renderApplication.js Upgrade fbsource/xplat/js to Flow v0.53.0 2017-08-17 18:45:01 -07:00
requireNativeComponent.js Fix regression in Java->C++->JS ViewManagers interaction. 2017-10-03 05:30:42 -07:00
verifyPropTypes.js Enabled pretier (@format) for all files in ReactNative folder 2017-09-24 23:01:25 -07:00