You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-7.x/bottom-tab-navigator.md
+79-11Lines changed: 79 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -166,14 +166,27 @@ Style object for the component wrapping the screen content.
166
166
167
167
Function that returns a React element to display as the tab bar.
168
168
169
-
Example:
169
+
The function receives an object containing the following properties as the argument:
170
170
171
-
<sampid="custom-tab-bar" />
171
+
-`state` - The state object for the tab navigator.
172
+
-`descriptors` - The descriptors object containing options for the tab navigator.
173
+
-`navigation` - The navigation object for the tab navigator.
172
174
173
-
```js
175
+
The `state.routes` array contains all the routes defined in the navigator. Each route's options can be accessed using `descriptors[route.key].options`.
0 commit comments