Container | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
Container
The Container restricts a content's width according to current breakpoint, while keeping the size fluid.
Implements
Usage
To include content, wrap it in the Container component.
Example
Playground
Props
Container implements , so all the Box Props can be passed to it.
Container
Name
Type
Description
Default
centerContent
boolean
It'll center child elements based on their content width.
true
Nativebase logo
MadeWithNativeBase