Skip to main content
Version: 7.37.0

Options Commands

setDefaultOptions#

Set default options for all screens. Useful for declaring a consistent style across the app.

Parameters#

NameTypeRequiredDescription
optionsOptionsYesOptions root

Example#

Navigation.setDefaultOptions({
bottomTab: {
textColor: 'black',
selectedTextColor: 'blue',
},
});

mergeOptions#

Change navigation options of a component or layout.

Parameters#

NameTypeRequiredDescription
componentIdstringYesThe component or layout id
optionsOptionsYesOptions root

Example#

Navigation.mergeOptions('componentId', {
bottomTabs: {
visible: false,
},
});