id | title | sidebar_label |
---|---|---|
options-api |
Options Commands |
Options commands |
Set default options for all screens. Useful for declaring a consistent style across the app.
Name | Type | Required | Description |
---|---|---|---|
options | Options | Yes | Options root |
Navigation.setDefaultOptions({
bottomTab: {
textColor: 'black',
selectedTextColor: 'blue',
},
});
Change navigation options of a component or layout.
Name | Type | Required | Description |
---|---|---|---|
componentId | string | Yes | The component or layout id |
options | Options | Yes | Options root |
Navigation.mergeOptions('componentId', {
bottomTabs: {
visible: false,
},
});