react-native/local-cli/server/util
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
..
attachHMRServer.js Pass transformOptions to getShallowDependencies. 2016-04-06 11:38:27 -07:00
copyToClipBoard.js Add Copy and Dismiss Button in RN Android Red Box 2016-06-30 08:13:22 -07:00
debugger.html RN: Clear Debug Console on Reload JS 2016-06-08 19:13:25 -07:00
debuggerWorker.js Don't send bogus values to the app 2016-03-11 04:35:24 -08:00
launchEditor.js Support vscode as a React Editor 2016-06-21 11:09:24 -07:00
messageSocket.js Use messageSocket to broadcast reload command on global shortcut 2016-06-20 10:58:32 -07:00
webSocketProxy.js Improve Chrome debugger 2016-02-05 15:17:33 -08:00