AspectRatio | NativeBase | Universal Components for React and React Native

Nativebase logo
NativeBase
Data Display
Typography
Disclosure
Media and Icons
Others
AspectRatio
Aspect ratio 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
Basic
Playground
Embed Image
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