Aspect Ratio
Constrains children to a fixed width/height ratio.
Install
Section titled “Install”npx github:truongnat/rnui#cli add aspect-ratioor directly via the shadcn CLI:
npx shadcn add https://<registry-base>/r/nativewind/aspect-ratio.json # or /uniwind/// See the source file for the API:Source
Section titled “Source”components/ui/aspect-ratio.tsx
Installs together with: utils, theme