From 884e242922dfa0a8da5a3c80c45c73be150fa795 Mon Sep 17 00:00:00 2001
From: Website Deployment Script 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 By intelligently applying By intelligently applying 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.Avoiding conflicts with the render function
setNativeProps will be completely ignored and overridden.setNativeProps & shouldComponentUpdate
-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.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.Other native methods
measure(callback)
diff --git a/docs/next/running-on-device.html b/docs/next/running-on-device.html
index 4754236cb5c..118a2831ea8 100644
--- a/docs/next/running-on-device.html
+++ b/docs/next/running-on-device.html
@@ -206,7 +206,10 @@ emulator-5554 offline
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.