diff --git a/docs/next/touchableopacity.html b/docs/next/touchableopacity.html index c67847c1e6d..60d82d9e649 100644 --- a/docs/next/touchableopacity.html +++ b/docs/next/touchableopacity.html @@ -69,8 +69,20 @@ } });
Edit

TouchableOpacity

A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, dimming it.

-

Opacity is controlled by wrapping the children in an Animated.View, which is added to the view hierarchy. Be aware that this can affect layout.

-

Example

+

Opacity is controlled by wrapping the children in an Animated.View, which is added to the view hierarchy. Be aware that this can affect layout.

+

Example:

+
renderButton: function() {
+  return (
+    <TouchableOpacity onPress={this._onPressButton}>
+      <Image
+        style={styles.button}
+        source={require('./myButton.png')}
+      />
+    </TouchableOpacity>
+  );
+},
+
+

Example

-
Edit

TouchableOpacity

A wrapper for making views respond properly to touches. On press down, the opacity of the wrapped view is decreased, dimming it.

-

Opacity is controlled by wrapping the children in an Animated.View, which is added to the view hierarchy. Be aware that this can affect layout.

-

Example

+

Opacity is controlled by wrapping the children in an Animated.View, which is added to the view hierarchy. Be aware that this can affect layout.

+

Example:

+
renderButton: function() {
+  return (
+    <TouchableOpacity onPress={this._onPressButton}>
+      <Image
+        style={styles.button}
+        source={require('./myButton.png')}
+      />
+    </TouchableOpacity>
+  );
+},
+
+

Example

-