react-native/Libraries/polyfills
Andrew Goodale f7657eaf02 Implement console group APIs (#18555)
Summary:
Thank you for sending the PR! We appreciate you spending the time to work on these changes.
Help us understand your motivation by explaining why you decided to make this change.

React Native provides an implementation of the Web "Console" API, which is a powerful mechanism for debugging and analyzing RN apps. However, one subset of the Console API that RN does not provide is the "grouping" functions, namely `console.group` and `console.groupEnd`. These functions provide a useful way to see how an application behaves within a different parts of an application hierarchy.

I modified the "RNTester" app to create a console group each time an example is tapped, and the group is ended when the "Back" button is tapped. Here is an example of the grouping as seen in the Xcode console.

<img width="651" alt="console grouping" src="https://user-images.githubusercontent.com/445421/37882070-d2ae7860-306d-11e8-8cf4-be843a864f43.png">

https://github.com/facebook/react-native-website/pull/270

[GENERAL] [ENHANCEMENT] [console.js] - Add `console.group()` and `console.groupEnd()` APIs, matching the Web Console API.
Closes https://github.com/facebook/react-native/pull/18555

Differential Revision: D7992131

Pulled By: hramos

fbshipit-source-id: 0d28896292563922240ae2100ed49e35b6d1f102
2018-06-12 11:18:37 -07:00
..
__tests__ Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Array.es6.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Array.prototype.es6.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Number.es6.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Object.es6.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
Object.es7.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
String.prototype.es6.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00
babelHelpers.js Upgrade babel to beta.47 across xplat 2018-05-23 06:16:01 -07:00
console.js Implement console group APIs (#18555) 2018-06-12 11:18:37 -07:00
error-guard.js Prettier React Native Libraries 2018-05-10 19:10:38 -07:00