|
@@ -38,7 +38,7 @@ class ModalScreen extends Component {
|
38
|
38
|
{this.getPreviousModalId() ? (<Button title="Dismiss Previous Modal" testID={testIDs.DISMISS_PREVIOUS_MODAL_BUTTON} onPress={this.onClickDismissPreviousModal} />) : undefined}
|
39
|
39
|
{this.props.previousModalIds ? (<Button title="Dismiss ALL Previous Modals" testID={testIDs.DISMISS_ALL_PREVIOUS_MODAL_BUTTON} onPress={this.onClickDismissAllPreviousModals} />) : undefined}
|
40
|
40
|
{this.props.previousModalIds ? (<Button title="Dismiss First In Stack" testID={testIDs.DISMISS_FIRST_MODAL_BUTTON} onPress={this.onClickDismissFirstInStack} />) : undefined}
|
41
|
|
- <Text style={styles.footer}>{`this.props.containerId = ${this.props.containerId}`}</Text>
|
|
41
|
+ <Text style={styles.footer}>{`this.props.componentId = ${this.props.componentId}`}</Text>
|
42
|
42
|
</View>
|
43
|
43
|
);
|
44
|
44
|
}
|
|
@@ -49,14 +49,14 @@ class ModalScreen extends Component {
|
49
|
49
|
name: 'navigation.playground.ModalScreen',
|
50
|
50
|
passProps: {
|
51
|
51
|
modalPosition: this.getModalPosition() + 1,
|
52
|
|
- previousModalIds: _.concat([], this.props.previousModalIds || [], this.props.containerId)
|
|
52
|
+ previousModalIds: _.concat([], this.props.previousModalIds || [], this.props.componentId)
|
53
|
53
|
}
|
54
|
54
|
}
|
55
|
55
|
});
|
56
|
56
|
}
|
57
|
57
|
|
58
|
58
|
async onClickDismissModal() {
|
59
|
|
- await Navigation.dismissModal(this.props.containerId);
|
|
59
|
+ await Navigation.dismissModal(this.props.componentId);
|
60
|
60
|
}
|
61
|
61
|
|
62
|
62
|
onClickDismissPreviousModal() {
|