Dimensions
-+
useWindowDimensionsis the preffered API for React components. UnlikeDimensions, it updates as the window's dimensions update. This works nicely with the React paradigm.
useWindowDimensionsis the preffered API for React components. UnlikeDimensions, it updates as the window's dimensions update. This works nicely with the React paradigm.
import {Dimensions} from 'react-native';
diff --git a/docs/dimensions/index.html b/docs/dimensions/index.html
index 4821096ebc3..6cac39d7ac3 100644
--- a/docs/dimensions/index.html
+++ b/docs/dimensions/index.html
@@ -1,4 +1,4 @@
-Dimensions
-+
useWindowDimensionsis the preffered API for React components. UnlikeDimensions, it updates as the window's dimensions update. This works nicely with the React paradigm.
useWindowDimensionsis the preffered API for React components. UnlikeDimensions, it updates as the window's dimensions update. This works nicely with the React paradigm.
import {Dimensions} from 'react-native';
diff --git a/docs/next/hermes.html b/docs/next/hermes.html
index 147c52f32b7..25e0769419b 100644
--- a/docs/next/hermes.html
+++ b/docs/next/hermes.html
@@ -85,8 +85,9 @@
+ enableHermes: true // clean and rebuild if changing
]
-Also, if you're using ProGuard, you will need to add this rule in proguard-rules.pro :
Also, if you're using ProGuard, you will need to add these rules in proguard-rules.pro :
-keep class com.facebook.hermes.unicode.** { *; }
+-keep class com.facebook.jni.** { *; }
Next, if you've already built your app at least once, clean the build:
$ cd android && ./gradlew clean
diff --git a/docs/next/hermes/index.html b/docs/next/hermes/index.html
index 147c52f32b7..25e0769419b 100644
--- a/docs/next/hermes/index.html
+++ b/docs/next/hermes/index.html
@@ -85,8 +85,9 @@
+ enableHermes: true // clean and rebuild if changing
]
-Also, if you're using ProGuard, you will need to add this rule in proguard-rules.pro :
Also, if you're using ProGuard, you will need to add these rules in proguard-rules.pro :
-keep class com.facebook.hermes.unicode.** { *; }
+-keep class com.facebook.jni.** { *; }
Next, if you've already built your app at least once, clean the build:
$ cd android && ./gradlew clean
diff --git a/docs/next/settings.html b/docs/next/settings.html
index 57b004fb20d..f0a0ee382aa 100644
--- a/docs/next/settings.html
+++ b/docs/next/settings.html
@@ -69,28 +69,85 @@
}
});
Settings
Settings serves as a wrapper for NSUserDefaults, a persistent key-value store available only on iOS.
+
Example
+Reference
Methods
clearWatch()
-static clearWatch(watchId)
+static clearWatch(watchId: number)
watchId is the number returned by watchKeys() when the subscription was originally configured.
get()
-static get(key)
+static get(key: string): mixed
-Get the current value for a key in NSUserDefaults.
+Get the current value for a given key in NSUserDefaults.
set()
-static set(settings)
+static set(settings: object)
Set one or more values in NSUserDefaults.
watchKeys()
-static watchKeys(keys, callback)
-
-Subscribe to be notified when the value for any of the keys specified by the keys array changes in NSUserDefaults. Returns a watchId number that may be used with clearWatch() to unsubscribe.
-
Settings
Settings serves as a wrapper for NSUserDefaults, a persistent key-value store available only on iOS.
+
Example
+Reference
Methods
clearWatch()
-static clearWatch(watchId)
+static clearWatch(watchId: number)
watchId is the number returned by watchKeys() when the subscription was originally configured.
get()
-static get(key)
+static get(key: string): mixed
-Get the current value for a key in NSUserDefaults.
+Get the current value for a given key in NSUserDefaults.
set()
-static set(settings)
+static set(settings: object)
Set one or more values in NSUserDefaults.
watchKeys()
-static watchKeys(keys, callback)
-
-Subscribe to be notified when the value for any of the keys specified by the keys array changes in NSUserDefaults. Returns a watchId number that may be used with clearWatch() to unsubscribe.
-