id | title | sidebar_label |
---|---|---|
modal |
Modal |
Modal |
Show a screen as a modal.
Name | Required | Type | Description |
---|---|---|---|
layout | Yes | Layout | Any type of layout. BottomTabs, Stack, SideMenu, Component |
Navigation.showModal({
stack: {
children: [{
component: {
name: 'example.ModalScreen',
passProps: {
text: 'stack with one child'
},
options: {
topBar: {
title: {
text: 'Modal'
}
}
}
}
}]
}
});
Dismiss the current modal.
Name | Required | Type | Description |
---|---|---|---|
componentId | Yes | string | Any component id presented in the modal |
mergeOptions | No | Options | Options to be merged before dismissing the Modal. |
Navigation.dismissModal(this.props.componentId);
Dismiss all current modals at the same time.
Name | Required | Type | Description |
---|---|---|---|
mergeOptions | No | Options | Options to be merged before dismissing all modals. |
Navigation.dismissAllModals();