Skip to content

Files

Latest commit

 

History

History
39 lines (31 loc) · 1.43 KB

layout-stack.mdx

File metadata and controls

39 lines (31 loc) · 1.43 KB
id title sidebar_label
layout-stack
Stack
Stack

A stack is a container layout promoting a hierarchical navigation. It is used to navigate between screens at consecutive levels of hierarchy, steps in a flow or across an app.

{
  id: 'PROFILE_TAB',
  children: [
    {
      component: {
        id: 'PROFILE_SCREEN',
        name: 'ProfileScreen'
      }
    }
  ]
}

id

Type Required Description
string No Unique id used to interact with the view via the Navigation api, usually Navigation.mergeOptions which accepts the componentId as it's first argument.

children

Type Required Description
Layout[] YES Child layouts of any kind.

options

Type Required Description
Options No Options that will apply to all screens in stack