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-5.x/bottom-tab-navigator.md
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -237,7 +237,39 @@ Takes an object containing following optional properties:
237
237
238
238
##### `style`
239
239
240
-
Style object for the tab bar.
240
+
Style object for the tab bar. You can configure styles such as background color here.
241
+
242
+
To show your screen under the tab bar, you can set the `position` style to absolute:
243
+
244
+
```js
245
+
style: { position:'absolute' }
246
+
```
247
+
248
+
You also might need to add a bottom margin to your content if you have a absolutely positioned tab bar. React Navigation won't do it automatically.
249
+
250
+
To get the height of the bottom tab bar, you can use `BottomTabBarHeightContext` with [React's Context API](https://reactjs.org/docs/context.html#contextconsumer) or `useBottomTabBarHeight`:
0 commit comments