forked from microsoft/vscode-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Walkthroughs implementation (microsoft#1698)
* Add docs about element inspector * Implement walkthroughs feature Co-authored-by: RedMickey <[email protected]> Co-authored-by: RedMickey <[email protected]>
- Loading branch information
1 parent
c3a789a
commit 19590a3
Showing
32 changed files
with
160 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Run and Debug your React Native application | ||
## Create and run debugging scenario | ||
This extension supports generating debugging configuration in the `.vscode/launch.json` file by selecting debugging parameters in dropdown lists at the top of the editor. | ||
|
||
 | ||
|
||
To start debugging, just choose the appropriate configuration in the Configuration dropdown, and then press F5 (or click _Green Arrow_  button) to start debugging your app in VS Code. | ||
|
||
The extension also allows to start debugging without creating the `launch.json` file in one of the following ways: | ||
- Using dynamic debugging configurations | ||
|
||
 | ||
- Using Debug button in the Editor Title area menu | ||
|
||
 | ||
|
||
## Enable debugging mode and attach to the application | ||
After using one of the suggested methods of launching the application, wait for the application to launch. | ||
|
||
Once app is loaded and running, [open the developer menu](https://reactnative.dev/docs/debugging#accessing-the-in-app-developer-menu) inside your application and enable remote debugging by clicking on `Debug JS Remotely` button. After that, please wait until the extension attaches to your application. | ||
|
||
 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Main extension features | ||
## React Native commands in the Command Palette | ||
The extension provides special `Command Palette commands` for running React Native applications on different platforms, operating with the Packager and automating some dev processes. You can find more info about supported commands [here](https://github.com/microsoft/vscode-react-native#react-native-commands-in-the-command-palette). | ||
## Network inspector | ||
The extension provides `Network inspector` feature to inspect outgoing network traffic in your apps. You can browse all requests being made and their responses in VS Code DevTools console. More details about Network inspector usage and its requirements are available [here](https://github.com/microsoft/vscode-react-native#network-inspector) in the documentation. | ||
## Element inspector | ||
In the extension you can run React DevTools Element inspector to inspect the DOM-tree of your application by starting `Run Element Inspector` command in Command Palette. You can learn more about React DevTools installation and usage [here](https://github.com/microsoft/vscode-react-native#element-inspector). | ||
## Customization | ||
The extension provides different settings that can be customized according to personal preferences to improve the extension usability. Please see the [Customization](https://github.com/microsoft/vscode-react-native#customization) section in the documentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Getting started | ||
Before going any further, please check out the following information to help you get started with React Native Tools successfully. | ||
|
||
Make sure that you: | ||
|
||
- [have a working React Native environment](https://reactnative.dev/docs/environment-setup). | ||
- have the [`emulator`](https://developer.android.com/studio/run/emulator-commandline) utility available in your `PATH` if you're developing Android applications using emulators. | ||
- have your React Native project root folder open in VS Code. | ||
|
||
Please notice that the extension uses `.vscode/.react` directory at the project root to store intermediate files required for debugging. Although these files usually get removed after debug session ends, you may want to add this directory to your project's `.gitignore` file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Expo applications | ||
Prepare your environment by following the [Expo CLI Quickstart instruction](https://reactnative.dev/docs/environment-setup). | ||
For correct work with Expo this extension **`requires Android SDK`**. | ||
So also pay attention to the `React Native CLI Quickstart` tab, where you can find the Android SDK installation guide: | ||
|
||
- Install the [Expo app](https://docs.expo.dev/get-started/installation/#2-expo-go-app-for-ios-and) on the target device or emulator | ||
- Ensure that the `Android SDK` is installed on your computer (You may install it using the [`React Native CLI Quickstart` guide](https://reactnative.dev/docs/environment-setup)) | ||
- Ensure that the `expo-cli` is installed globally (`npm install -g expo-cli`) | ||
|
||
You can verify that everything is working correctly and that the environment is ready for use with the `npx react-native doctor` command. |