Authored by 于良

优化prompt review by 草莓

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