Layout
object-fit
Utilities for controlling how a replaced element's content should be resized.
Quick reference
Every class applies on React Native
object-contain
object-fit: contain;
objectFit: contain
object-cover
object-fit: cover;
objectFit: cover
object-fill
object-fit: fill;
objectFit: fill
object-none
object-fit: none;
objectFit: none
object-scale-down
object-fit: scale-down;
objectFit: scale-down
The React Native column is what AstraWind resolves each class to, computed live on this page with the current color scheme. Classes with no native equivalent are accepted without effect, and AstraWind warns about them in development. See
Compatibility.