Features

Effects

Shadows, filters, native masks, clip paths, transforms, and font variants.

Effects

Nitrocss has dedicated parsers for React Native effect shapes.

Supported effect families

FeatureNotes
TransformIndividual transform utilities are folded into React Native transform arrays.
Box shadowCSS shadow declarations become native shadow styles where supported.
Text shadowCSS text-shadow maps to React Native text shadow props.
FilterSupported filter entries are parsed into native filter descriptors.
Backdrop filterUses a native backdrop view path where available.
Mask imageURL and gradient alpha masks support native sizing, positioning, repeating, and animation.
Clip pathSupported clip paths are parsed and applied natively.
Font variantCSS font-variant values map to React Native fontVariant.
<Text className="text-xl font-bold shadow-lg [text-shadow:0_2px_4px_rgba(0,0,0,0.25)]">
  Polished text
</Text>

Unsupported browser-only declarations are ignored rather than leaking invalid props into React Native.

Native masks and clip paths

Use a mask when an image or gradient should control the alpha of the painted view. Mask size, position, and repeat are committed through the native iOS and Android appliers. Use a clip path when a geometric circle, inset, or polygon should define the visible region instead.

.photo-star {
  mask-image: url('./star.svg');
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

Mask animation updates the mask transform or opacity track. It does not rotate the underlying photo, gradient view, or outer border.

Interactive exampleNative mask
Native paint layer
mask-image: radial-gradient(circle,
black 46%, transparent 68%);
mask-size: contain;

On this page