diff --git a/Examples/UIExplorer/ModalExample.js b/Examples/UIExplorer/ModalExample.js index eb925b5eb531fb..a3238c76feee44 100644 --- a/Examples/UIExplorer/ModalExample.js +++ b/Examples/UIExplorer/ModalExample.js @@ -19,7 +19,7 @@ var React = require('react-native'); var { Modal, StyleSheet, - SwitchIOS, + Switch, Text, TouchableHighlight, View, @@ -96,7 +96,9 @@ var ModalExample = React.createClass({ + visible={this.state.modalVisible} + onRequestClose={() => {this._setModalVisible(false)}} + > This modal was presented {this.state.animated ? 'with' : 'without'} animation. @@ -111,12 +113,12 @@ var ModalExample = React.createClass({ Animated - + Transparent - +