Authored by 于良

优化prompt review by 草莓

@@ -109,7 +109,7 @@ export default class Prompt extends Component { @@ -109,7 +109,7 @@ export default class Prompt extends Component {
109 <Animated.View style={[styles.container, {opacity: this.state.fadeAnim,}]}> 109 <Animated.View style={[styles.container, {opacity: this.state.fadeAnim,}]}>
110 <View style={customStyles.overlay}> 110 <View style={customStyles.overlay}>
111 {this.props.icon ? <Image source={this.props.icon} style={customStyles.title}/> : null} 111 {this.props.icon ? <Image source={this.props.icon} style={customStyles.title}/> : null}
112 - <Text style={customStyles.text}>{this.props.text}</Text> 112 + {this.props.text ? <Text style={customStyles.text}>{this.props.text}</Text> : null}
113 </View> 113 </View>
114 </Animated.View> 114 </Animated.View>
115 ); 115 );