From be8af22740997b4268b90746526e4e953e9ca5bf Mon Sep 17 00:00:00 2001 From: Alex Hunt Date: Wed, 24 May 2023 10:42:52 -0700 Subject: [PATCH] Add debugging docs link to NewAppScreen (#37552) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/37552 - Add debugging docs link to `NewAppScreen`. - Align "React Native debug menu" term in `DebugInstructions` to "Dev Menu". Changelog: [General][Changed] Add debugging docs link to new app screen Reviewed By: cortinico Differential Revision: D46149252 fbshipit-source-id: 20e624cebeded1e44e858eec849b9b4c47b34c52 --- .../NewAppScreen/components/DebugInstructions.js | 8 ++++---- .../NewAppScreen/components/LearnMoreLinks.js | 11 +++++++++-- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/packages/react-native/Libraries/NewAppScreen/components/DebugInstructions.js b/packages/react-native/Libraries/NewAppScreen/components/DebugInstructions.js index f296af2cfd0..9963fe69081 100644 --- a/packages/react-native/Libraries/NewAppScreen/components/DebugInstructions.js +++ b/packages/react-native/Libraries/NewAppScreen/components/DebugInstructions.js @@ -25,15 +25,15 @@ const DebugInstructions: () => Node = Platform.select({ ios: () => ( Press Cmd + D in the simulator or{' '} - Shake your device to open the React - Native debug menu. + Shake your device to open the Dev + Menu. ), default: () => ( Press Cmd or Ctrl + M or{' '} - Shake your device to open the React - Native debug menu. + Shake your device to open the Dev + Menu. ), }); diff --git a/packages/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js b/packages/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js index d059183d74b..cff854bcca7 100644 --- a/packages/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js +++ b/packages/react-native/Libraries/NewAppScreen/components/LearnMoreLinks.js @@ -60,13 +60,20 @@ const links = [ }, { id: 7, + title: 'Debugging', + link: 'https://facebook.github.io/react-native/docs/debugging', + description: + 'Learn about the tools available to debug and inspect your app.', + }, + { + id: 8, title: 'Help', - link: 'https://reactnative.dev/help', + link: 'https://facebook.github.io/react-native/help', description: 'Need more help? There are many other React Native developers who may have the answer.', }, { - id: 8, + id: 9, title: 'Follow us on Twitter', link: 'https://twitter.com/reactnative', description: