
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
motion-on-native
Advanced tools
Framer Motion-inspired animation library for React Native with Reanimated. Easy spring animations, gestures, and transitions for mobile apps.
Framer Motion–inspired animations for React Native built on Reanimated.
npm install motion-on-native
# or
yarn add motion-on-native
This package requires:
react-native-reanimated >= 3.0.0react-native >= 0.60.0react >= 16.8.0import { NativeMotion } from 'motion-on-native';
<NativeMotion.View
initial={{ opacity: 0, translateX: -100 }}
animate={{ opacity: 1, translateX: 0 }}
transition={{ type: 'spring', damping: 15, stiffness: 100 }}
>
<Text>Animated content</Text>
</NativeMotion.View>;
import { NativeMotion, AnimatedExit } from 'motion-on-native';
<AnimatedExit>
{isVisible && (
<NativeMotion.View
key="item"
initial={{ opacity: 0, scale: 0.8 }}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: 0.8 }}
transition={{ type: 'spring', damping: 15 }}
>
<Text>I will animate out when removed</Text>
</NativeMotion.View>
)}
</AnimatedExit>;
NativeMotion.ViewNativeMotion.TextNativeMotion.ImageNativeMotion.ImageBackgroundNativeMotion.TextInputNativeMotion.TouchableOpacityNativeMotion.PressableEnables exit animations for components being removed from the tree.
mode: 'sync' | 'wait' - Animation mode (default: 'sync')animationId propexit prop will animate outinitial: AnimationProps | false - Initial animation stateanimate: AnimationProps - Target animation stateexit: AnimationProps - Exit animation state (requires AnimatedExit)transition: TransitionProps - Animation configurationstyles: ViewStyle - Additional stylesopacity: 0-1translateX, translateY: translation in pixelsscale, scaleX, scaleY: size multipliersrotate, rotateX, rotateY, rotateZ: rotation (e.g., '45deg')skewX, skewY: skew transformationswidth, height: dimensionsmargin, marginTop, marginBottom, marginLeft, marginRightmarginHorizontal, marginVerticalpadding, paddingTop, paddingBottom, paddingLeft, paddingRightpaddingHorizontal, paddingVerticalborderRadius, borderTopLeftRadius, borderTopRightRadius, borderBottomLeftRadius, borderBottomRightRadiusborderWidth, borderTopWidth, borderBottomWidth, borderLeftWidth, borderRightWidthborderColor, borderTopColor, borderBottomColor, borderLeftColor, borderRightColorColor interpolation uses Reanimated color interpolation and may change in future releases.
top, bottom, left, right: positioningshadowColor, shadowOpacity, shadowRadiuselevation: shadow depth// Spring animation (default)
transition={{
type: 'spring',
damping: 15,
stiffness: 100,
mass: 1
}}
// Timing animation
transition={{
type: 'timing',
duration: 300,
delay: 100
}}
// Repeating animation
transition={{
type: 'timing',
duration: 1000,
repeat: 'infinity', // or number
repeatType: 'reverse' // or 'loop'
}}
type: 'spring' | 'timing'duration: animation duration in msdamping: spring damping (spring only)stiffness: spring stiffness (spring only)mass: spring mass (spring only)delay: delay before animation startsease: easing function namerepeat: number of repeats or 'infinity'repeatType: 'loop' | 'reverse'Motion on Native focuses on declarative animations and exit presence. It does not aim to fully replicate Motion’s web feature set (e.g. layout animations, gestures, or shared layout transitions).
This library adapts core animation concepts and presence-management ideas from Motion (formerly Framer Motion), which is licensed under the MIT License.
AnimatedExit is inspired by Motion’s presence system, reimplemented for React Native using Reanimated.
© Framer B.V.
MIT
FAQs
Framer Motion-inspired animation library for React Native with Reanimated. Easy spring animations, gestures, and transitions for mobile apps.
The npm package motion-on-native receives a total of 19 weekly downloads. As such, motion-on-native popularity was classified as not popular.
We found that motion-on-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.