diff --git a/Examples/UIExplorer/WebViewExample.js b/Examples/UIExplorer/WebViewExample.js index f734614939..6654551ad4 100644 --- a/Examples/UIExplorer/WebViewExample.js +++ b/Examples/UIExplorer/WebViewExample.js @@ -20,6 +20,7 @@ var { StyleSheet, Text, TextInput, + TouchableWithoutFeedback, TouchableOpacity, View, WebView @@ -160,6 +161,60 @@ var WebViewExample = React.createClass({ }); +var Button = React.createClass({ + _handlePress: function() { + if (this.props.enabled && this.props.onPress) { + this.props.onPress(); + } + }, + render: function() { + return ( + + + {this.props.text} + + + ); + } +}); + +var ScaledWebView = React.createClass({ + + getInitialState: function() { + return { + scalingEnabled: true + } + }, + + render: function() { + return ( + + + + { this.state.scalingEnabled ? +