Browse Source

[v2][docs] Improving documentation on side menu config (#3773)

Andrew Cole 6 years ago
parent
commit
549f15fdb1
1 changed files with 7 additions and 2 deletions
  1. 7
    2
      docs/docs/layout-types.md

+ 7
- 2
docs/docs/layout-types.md View File

@@ -137,7 +137,7 @@ Navigation.mergeOptions('SecondScreenId', {
137 137
 
138 138
 ## sideMenu
139 139
 
140
-Expect center, left and right layouts
140
+Expect center, left and right layouts. center: { stack: ... } is required to have a topBar in center screen of a sideMenu app.
141 141
 
142 142
 ```js
143 143
 const sideMenu = {
@@ -145,7 +145,12 @@ const sideMenu = {
145 145
     component: {}
146 146
   },
147 147
   center: {
148
-    stack: {}
148
+    stack: {
149
+      options: {},
150
+      children: [{
151
+        component: {}
152
+      }]
153
+    }
149 154
   },
150 155
   right: {
151 156
     component: {}