react-native-modal
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -22,2 +22,14 @@ 'use strict'; | ||
render() { | ||
var closeButton; | ||
if (this.props.hideCloseButton !== true) { | ||
closeButton = ( | ||
<View style={modalStyles.closeButton}> | ||
<TouchableOpacity onPress={this.props.onClose}> | ||
<Text style={modalStyles.closeButtonText}>Close</Text> | ||
</TouchableOpacity> | ||
</View> | ||
) | ||
} | ||
if (this.props.isVisible) { | ||
@@ -27,7 +39,3 @@ return ( | ||
<View style={modalStyles.backdrop} /> | ||
<View style={modalStyles.closeButton}> | ||
<TouchableOpacity onPress={this.props.onClose}> | ||
<Text style={modalStyles.closeButtonText}>Close</Text> | ||
</TouchableOpacity> | ||
</View> | ||
{closeButton} | ||
@@ -34,0 +42,0 @@ <View style={modalStyles.modal}> |
{ | ||
"name": "react-native-modal", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "A <Modal> component for react-native", | ||
@@ -5,0 +5,0 @@ "main": "Modal.ios.js", |
214869
86