Skip to content

Commit b52a74f

Browse files
committed
Allow custom Cancel button text with buttonText property.
1 parent d84c0f8 commit b52a74f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var ActionModal = React.createClass({
1616
<View style={styles.modalContainer}>
1717
<TouchableOpacity style={styles.container} onPress={this.props.onCancel}></TouchableOpacity>
1818
{this.props.children}
19-
<Button onPress={this.props.onCancel} text={"Cancel"} />
19+
<Button onPress={this.props.onCancel} text={this.props.buttonText || "Cancel"} />
2020
</View>
2121
</Modal>
2222
</FadeInView>

0 commit comments

Comments
 (0)