react-native/React
Chris Evans 5047f6f54c Add Copy Stack button to Red Box (iOS)
Summary:
Added a button to the iOS Red Box to enable copying of the error and stack trace to the clipboard to make it easier to paste the error and stack into bug reports or other text windows. Clicking the Copy button on the bottom of the RedBox screen or pressing Cmd-Option-C keyboard shortcut in the simulator will copy the full stack trace as text to the iOS pasteboard and when in the simulator you can then hit Command-C to get the text to the Mac's pasteboard for pasting in your favorite reporting/tracking app.

No tests for this change - I don't see any tests to extend for the RCTRedBoxWindow class. No impact on APIs or core React Native functionality. I validated it by running test React Native apps with red box errors and both hitting the copy button or using the command key shortcut in the emulator to get the text of the stack to the iOS pasteboard.
![redboxcopybutton](https://cloud.githubusercontent.com/assets/7173455/15258992/7b1e849c-1903-11e6-8813-6e853db5db54.png)
Closes https://github.com/facebook/react-native/pull/7557

Differential Revision: D3311743

Pulled By: javache

fbshipit-source-id: 76d1ac8ab93f40696c6a2369dae2245194db095a
2016-05-17 12:28:21 -07:00
..
Base avoid waiting on the main thread just to send a notification 2016-05-13 17:29:00 -07:00
Executors change to fixed size offset table + indexed lookup 2016-05-16 04:43:24 -07:00
Layout Import css-layout measure mode changes from pull request #163 2016-04-12 07:02:29 -07:00
Modules Add Copy Stack button to Red Box (iOS) 2016-05-17 12:28:21 -07:00
Profiler Add a bunch more systrace logging 2016-05-13 17:29:00 -07:00
React.xcodeproj iOS: Enable views to be nested within <Text> 2016-05-17 10:43:30 -07:00
Views iOS: Enable views to be nested within <Text> 2016-05-17 10:43:30 -07:00