react-native/local-cli
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
..
__mocks__ Fix more tests 2015-09-16 13:05:30 -07:00
__tests__ Temporarily disable cli tests 2015-11-12 07:05:01 -08:00
bundle Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
dependencies Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
generate Revert "Add folders to attempt to unblock sync" 2015-10-26 22:48:10 +00:00
generator Mention double tapping R to reload in the app template 2016-06-23 06:43:27 -07:00
generator-android Add missing character into BUCK android template 2016-06-24 17:28:30 -07:00
generator-ios Fixed setDefaults not being called in React Native apps, fixed typo 2016-06-22 07:13:26 -07:00
library Remove 'react-native link' 2016-04-29 05:27:28 -07:00
logAndroid adds log-ios and log-android cli commands 2016-06-23 07:58:23 -07:00
logIOS adds log-ios and log-android cli commands 2016-06-23 07:58:23 -07:00
rnpm Fix typo (shoud -> should) 2016-06-04 16:43:41 -07:00
runAndroid Fixes 8309: Automatically run `adb reverse tcp:8081 tcp:8081` when st… 2016-06-23 06:58:33 -07:00
runIOS fix runIOS: appPath is hardcoded, read from log 2016-06-22 03:43:33 -07:00
server Add Copy and Dismiss Button in RN Android Red Box 2016-06-30 08:13:22 -07:00
upgrade Fix comment typos 2016-06-03 02:43:57 -07:00
util Fix comment typos 2016-06-03 02:43:57 -07:00
version Add `--version` to `local-cli/cli.js` 2016-04-29 09:25:32 -07:00
cli.js Use a separate babel config for the local-cli and the packager 2016-05-21 06:58:26 -07:00
cliEntry.js adds log-ios and log-android cli commands 2016-06-23 07:58:23 -07:00
default.config.js Allow rn-cli.config.js to specify the default transformer 2016-06-22 08:13:26 -07:00
generate-android.js Add license headers to local-cli 2015-10-20 09:55:21 -07:00
generator-utils.js flowconfig adds flow/ folder 2016-03-21 06:26:34 -07:00
setup_env.bat Fix comments on .bat file 2015-10-28 21:36:07 -04:00
setup_env.sh Change ulimit to 2048 for non root Mac users 2016-02-06 11:45:37 -08:00
wrong-react-native.js Fix usage of react-native cli inside package.json scripts 2016-04-26 15:42:35 -07:00