AspectRatio | 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.
AspectRatio
AspectRatio controls the size of the undefined dimension of a node or child component. You can refer for more details.
Import
Copy
import { AspectRatio } from "native-base";
Example
Playground
Props
ratio
The aspect ratio of the container. Some examples are `16/9`, `16/10`, `9/16`, `4/3`
Type: ResponsiveValue<number>
Default: 4/3
Nativebase logo
MadeWithNativeBase