mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-12 22:39:06 +08:00
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
25 lines
2.4 KiB
XML
25 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<resources>
|
|
<string name="catalyst_reloadjs" project="catalyst" translatable="false">Reload</string>
|
|
<string name="catalyst_debugjs" project="catalyst" translatable="false">Debug JS Remotely</string>
|
|
<string name="catalyst_debugjs_off" project="catalyst" translatable="false">Stop Remote JS Debugging</string>
|
|
<string name="catalyst_hot_module_replacement" project="catalyst" translatable="false">Enable Hot Reloading</string>
|
|
<string name="catalyst_hot_module_replacement_off" project="catalyst" translatable="false">Disable Hot Reloading</string>
|
|
<string name="catalyst_live_reload" project="catalyst" translatable="false">Enable Live Reload</string>
|
|
<string name="catalyst_live_reload_off" project="catalyst" translatable="false">Disable Live Reload</string>
|
|
<string name="catalyst_perf_monitor" project="catalyst" translatable="false">Show Perf Monitor</string>
|
|
<string name="catalyst_perf_monitor_off" project="catalyst" translatable="false">Hide Perf Monitor</string>
|
|
<string name="catalyst_settings" project="catalyst" translatable="false">Dev Settings</string>
|
|
<string name="catalyst_settings_title" project="catalyst" translatable="false">Catalyst Dev Settings</string>
|
|
<string name="catalyst_jsload_title" project="catalyst" translatable="false">Please wait…</string>
|
|
<string name="catalyst_jsload_message" project="catalyst" translatable="false">Fetching JS bundle</string>
|
|
<string name="catalyst_jsload_error" project="catalyst" translatable="false">Unable to download JS bundle. Did you forget to start the development server or connect your device?</string>
|
|
<string name="catalyst_remotedbg_message" project="catalyst" translatable="false">Connecting to remote debugger</string>
|
|
<string name="catalyst_remotedbg_error" project="catalyst" translatable="false">Unable to connect with remote debugger</string>
|
|
<string name="catalyst_element_inspector" project="catalyst" translatable="false">Toggle Inspector</string>
|
|
<string name="catalyst_heap_capture" project="catalyst" translatable="false">Capture Heap</string>
|
|
<string name="catalyst_dismiss_button" project="catalyst" translatable="false">Dismiss (ESC)</string>
|
|
<string name="catalyst_reload_button" project="catalyst" translatable="false">Reload (R, R)</string>
|
|
<string name="catalyst_copy_button" project="catalyst" translatable="false">Copy</string>
|
|
</resources>
|