Documentation

React Native

The tested capability contract for the beta Motionwind v2 React Native adapter.

React Native in v2

motionwind-react-native is the beta adapter for Reanimated. It shares syntax, configuration, presets, plugins, and diagnostics with the stable web adapters, then maps the supported subset to native styles and event handlers.

import { defineConfig, MotionwindProvider, mw } from "motionwind-react-native";

const config = defineConfig({
  adapter: "react-native",
  strict: true,
  reducedMotion: "user",
});

export default function Card() {
  return (
    <MotionwindProvider config={config}>
      <mw.Pressable className="animate-tap:scale-95 animate-spring">
        <mw.Text>Press me</mw.Text>
      </mw.Pressable>
    </MotionwindProvider>
  );
}

Capability contract

Capabilityv2 statusNotes
Initial and enterBetaReanimated timing and spring transitions.
TapBetaUses onPressIn and onPressOut; prefer mw.Pressable.
Hover and focusBetaWork only when the rendered native component/platform emits those handlers.
Named variantsBetaIncludes parent-to-child active-state propagation.
Scroll-linked valuesBetaDescendants consume normalized progress from mw.ScrollView.
Reduced motionBetaProvider policy and Reanimated's system preference are applied.
DragDirect APIEmits unsupported-native-drag; integrate Gesture Handler directly.
Layout transitionsDirect APIEmits unsupported-native-layout; use Reanimated layout transitions.
In-view classesDirect APIEmits unsupported-native-inview; orchestrate visibility yourself.
SVG and web-only stylesDirect APIEmits unsupported-native-property; use native/SVG APIs.
Exit orchestrationDirect APIExit data can be parsed, but unmount must be coordinated by the application.

Non-animation classes pass through to NativeWind when it is installed. Unsupported animation syntax returns parser diagnostics, and development warnings identify the required direct API.

Timing differences

The shared parser stores Motion durations in seconds. The native adapter converts them to Reanimated milliseconds. It also maps x/y to translateX/translateY and formats rotation values as degree strings.

Continue with Installation, Components, and the API Reference.