You can use the standalone version of React Developer Tools to debug the React component hierarchy. To use it, install the react-devtools package globally:
+Note: Version 4 of
+react-devtoolsrequiresreact-nativeversion 0.62 or higher to work properly.
npm install -g react-devtools
Now run react-devtools from the terminal to launch the standalone DevTools app:
You can use the standalone version of React Developer Tools to debug the React component hierarchy. To use it, install the react-devtools package globally:
+Note: Version 4 of
+react-devtoolsrequiresreact-nativeversion 0.62 or higher to work properly.
npm install -g react-devtools
Now run react-devtools from the terminal to launch the standalone DevTools app:
And then on your React component you'll be able to listen to the events on Linking as follows:
componentDidMount() {
Linking.addEventListener('url', this._handleOpenURL);
-},
+}
componentWillUnmount() {
Linking.removeEventListener('url', this._handleOpenURL);
-},
+}
_handleOpenURL(event) {
console.log(event.url);
}
diff --git a/docs/next/linking/index.html b/docs/next/linking/index.html
index dfb18cb666e..1553eb3f71e 100644
--- a/docs/next/linking/index.html
+++ b/docs/next/linking/index.html
@@ -128,10 +128,10 @@
And then on your React component you'll be able to listen to the events on Linking as follows:
componentDidMount() {
Linking.addEventListener('url', this._handleOpenURL);
-},
+}
componentWillUnmount() {
Linking.removeEventListener('url', this._handleOpenURL);
-},
+}
_handleOpenURL(event) {
console.log(event.url);
}
diff --git a/docs/next/navigation.html b/docs/next/navigation.html
index 2af6d9edb40..08805a7e2ea 100644
--- a/docs/next/navigation.html
+++ b/docs/next/navigation.html
@@ -74,7 +74,9 @@
React Navigation
The community solution to navigation is a standalone library that allows developers to set up the screens of an app with a few lines of code.
The first step is to install in your project:
-npm install --save react-navigation
+yarn add react-navigation
+# or with npm
+# npm install --save react-navigation
The second step is to install react-native-gesture-handler
yarn add react-native-gesture-handler
diff --git a/docs/next/navigation/index.html b/docs/next/navigation/index.html
index 2af6d9edb40..08805a7e2ea 100644
--- a/docs/next/navigation/index.html
+++ b/docs/next/navigation/index.html
@@ -74,7 +74,9 @@
React Navigation
The community solution to navigation is a standalone library that allows developers to set up the screens of an app with a few lines of code.
The first step is to install in your project:
-npm install --save react-navigation
+yarn add react-navigation
+# or with npm
+# npm install --save react-navigation
The second step is to install react-native-gesture-handler
yarn add react-native-gesture-handler