Container | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Data Display
Typography
Disclosure
Media and Icons
Others
If you are starting a new project, please try gluestack-ui for better performance and new design.
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
Gluestack logo
gluestack-ui