Skip to content

Files

Latest commit

 

History

History
47 lines (35 loc) · 1.07 KB

api-options.mdx

File metadata and controls

47 lines (35 loc) · 1.07 KB
id title sidebar_label
options-api
Options Commands
Options commands

setDefaultOptions

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

Parameters

Name Type Required Description
options Options Yes Options root

Example

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

mergeOptions

Change navigation options of a component or layout.

Parameters

Name Type Required Description
componentId string Yes The component or layout id
options Options Yes Options root

Example

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