Documentation

Components

Use the tested mw.* React Native component proxy.

Components

mw.* parses animate-* tokens at runtime, passes ordinary classes to NativeWind, combines existing style with a Reanimated style, and forwards refs and native props.

The explicitly mapped components are:

APINative baseAnimated base
mw.ViewViewAnimated.View
mw.TextTextAnimated.Text
mw.ImageImageAnimated.Image
mw.ScrollViewScrollViewAnimated.ScrollView plus scroll context
mw.FlatListFlatListAnimated.FlatList
mw.PressablePressableAnimated Pressable
mw.TextInputTextInputAnimated TextInput

mw.SectionList can pass through without animation classes, but is not an animated mapping in v2. Unknown proxy names fall back to a View and must not be used as an implicit custom-component factory.

<mw.Pressable
  accessibilityRole="button"
  className="bg-blue-500 p-4 animate-tap:scale-95 animate-spring"
  style={{ minHeight: 48 }}
>
  <mw.Text className="text-white">Save</mw.Text>
</mw.Pressable>

Use a press-capable component for animate-tap:*. A plain View does not promise the same responder behavior on every platform.

Unconfigured parsed class strings use a bounded cache; provider-configured strings are evaluated against that configuration. Components without recognized motion data render their plain mapped component; with motion data, they render the animated mapping and subscribe only to the properties in that parsed result.