react-native/local-cli/server/middleware
Siqi Liu dc3fce06ea Add Copy and Dismiss Button in RN Android Red Box
Summary:
Add "Copy" and "Dismiss" button when the RN Android redbox is shown, consistent with that in RN iOS.
  - "Copy" button copies all the messages shown in the redbox to the host system clipboard, the solution is posting redbox messages to packager and the the packager copies the messages onto the host clipboard.
  - "Dismiss" button always exits the redbox dialog.
  - Add shortcut as "Dismiss (ESC)" and "Reload (R, R).

Notice: Copy button is only supported on Mac OS by now (warning in packager on other platforms), because it's not easy for us to test on Windows or Linux. Will put the codes for other platforms on Github issues, hoping anyone could help test and add this feature, then send us a pull request.

Redbox Dialog in RN Android before:
{F61310489}
Redbox Dialog in RN Android now:
{F61659189}

Follow-up:
- We can adjust the button styles in redboxes.
- We can consider to add shortcut for "Copy" button.

Reviewed By: foghina

Differential Revision: D3392155

fbshipit-source-id: fc5dc2186718cac8706fb3c17d336160e61e3f4e
2016-06-30 08:13:22 -07:00
..
copyToClipBoardMiddleware.js Add Copy and Dismiss Button in RN Android Red Box 2016-06-30 08:13:22 -07:00
cpuProfilerMiddleware.js Fix CPU profiler upload 2015-10-30 14:46:00 -07:00
getDevToolsMiddleware.js Added support for JavaScript third-party debuggers 2016-04-07 13:15:58 -07:00
index.html Add index page for packager 2016-05-24 11:58:23 -07:00
indexPage.js Add index page for packager 2016-05-24 11:58:23 -07:00
loadRawBodyMiddleware.js Move files from `packager/` to `local-cli` 2015-10-26 15:38:14 -07:00
openStackFrameInEditorMiddleware.js Support vscode as a React Editor 2016-06-21 11:09:24 -07:00
statusPageMiddleware.js Move files from `packager/` to `local-cli` 2015-10-26 15:38:14 -07:00
systraceProfileMiddleware.js Move files from `packager/` to `local-cli` 2015-10-26 15:38:14 -07:00