diff --git a/docs/next/direct-manipulation.html b/docs/next/direct-manipulation.html index 8f253a140c7..5dd38da534a 100644 --- a/docs/next/direct-manipulation.html +++ b/docs/next/direct-manipulation.html @@ -171,7 +171,7 @@ render() { >
If you update a property that is also managed by the render function, you might end up with some unpredictable and confusing bugs because anytime the component re-renders and that property changes, whatever value was previously set from setNativeProps will be completely ignored and overridden.
By intelligently applying shouldComponentUpdate you can avoid the unnecessary overhead involved in reconciling unchanged component subtrees, to the point where it may be performant enough to use setState instead of setNativeProps.
By intelligently applying shouldComponentUpdate you can avoid the unnecessary overhead involved in reconciling unchanged component subtrees, to the point where it may be performant enough to use setState instead of setNativeProps.
The methods described here are available on most of the default components provided by React Native. Note, however, that they are not available on composite components that aren't directly backed by a native view. This will generally include most components that you define in your own app.
Run the following in a command prompt:
-$ adb reverse tcp:8081 tcp:8081
+$ adb -s <device name> reverse tcp:8081 tcp:8081
+
+To find the device name, run the following adb command:
+$ adb devices
You can now enable Live reloading from the Developer menu. Your app will reload whenever your JavaScript code has changed.
Method 2: Connect via Wi-Fi
@@ -223,7 +226,7 @@ emulator-5554 offline red screen with an error. This is OK. The following steps will fix that.
Open the in-app Developer menu.
-Go to Dev Settings → Debug server host for device.
+Go to Dev Settings → Debug server host & port for device.
Type in your machine's IP address and the port of the local dev server (e.g. 10.0.1.1:8081).
Go back to the Developer menu and select Reload JS.