lottie-react breaking changes
lottie-react 3.0.0 (August 15, 2026) is its newest release with breaking changes, 41 of them. The first: Removed Action. Every breaking API change we have recorded in lottie-react on npm: 41 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.1.2, released September 7, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
lottie-react 3.0.0 breaking changes
- Removed
Action
Action was removed in lottie-react 3.0.0 npmjs.com - Removed
animationContainerRef
Use a ref on the component, which is the rendered element. lottiereact.com - Removed
Axis
Axis was removed in lottie-react 3.0.0 npmjs.com - Removed
default
Import the component by name, for example { Lottie }, instead of using a default import. npmjs.com - Removed
destroy
Unmount the component instead of calling destroy(). lottiereact.com - Removed
getDuration
Read the playableDuration value instead of calling getDuration(), or playableFrames for a frame count. lottiereact.com - Removed
goToAndPlay
Call seek(...) and then play() instead. lottiereact.com - Removed
goToAndStop
Use seek(frame) or seek({ seconds }) instead. lottiereact.com - Removed
InteractivityProps
InteractivityProps was removed in lottie-react 3.0.0 npmjs.com - Removed
Listener
Listener was removed in lottie-react 3.0.0 npmjs.com - Removed
LottieComponentProps
LottieComponentProps was removed in lottie-react 3.0.0 npmjs.com - Removed
LottieOptions
Update type imports to UseLottieOptions. npmjs.com - Removed
LottiePlayer
Engine global settings are set through configureLottie instead. npmjs.com - Removed
LottieRef
LottieRef was removed in lottie-react 3.0.0 npmjs.com - Removed
LottieRefCurrentProps
Update type imports to LottieHandle. npmjs.com - Removed
onDestroy
There is no equivalent subscription in v3. lottiereact.com - Removed
onLoadedImages
There is no equivalent subscription in v3. lottiereact.com - Removed
onSegmentStart
There is no equivalent subscription in v3. lottiereact.com - Removed
PartialListener
PartialListener was removed in lottie-react 3.0.0 npmjs.com - Removed
PartialLottieComponentProps
PartialLottieComponentProps was removed in lottie-react 3.0.0 npmjs.com - Removed
PartialLottieOptions
PartialLottieOptions was removed in lottie-react 3.0.0 npmjs.com - Removed
Position
Position was removed in lottie-react 3.0.0 npmjs.com - Removed
setSubframe
There is no replacement method in v3. lottiereact.com - Removed
useLottieInteractivity
Use the interactions module and its factories such as lottieScrollScrub instead. npmjs.com - Renamed
animationData
Pass the animation data or a path or URL through src instead of animationData. lottiereact.com - Renamed
animationLoaded
Read the state value instead of animationLoaded. lottiereact.com - Renamed
initialSegment
Use the segment prop in place of initialSegment. lottiereact.com - Renamed
interactivity
Use the interactions module and its factories instead of the interactivity prop. lottiereact.com - Renamed
onComplete
Move the handler into the subscriptions object under complete. lottiereact.com - Renamed
onDataFailed
The handler moves to subscriptions.error and receives an object with error. lottiereact.com - Renamed
onDataReady
Move the handler into the subscriptions object under ready. lottiereact.com - Renamed
onEnterFrame
The handler moves to subscriptions.frame and receives an object with currentFrame. lottiereact.com - Renamed
onLoopComplete
Move the handler into the subscriptions object under loopCompleted. lottiereact.com - Behavior changed
Generated element IDs now carry the lottie-react prefix, so code that matches the old IDs must be updated. lottiereact.com - Behavior changed
playSegments
Calls now interrupt current playback; pass { queue: true } to queue the segments instead. lottiereact.com - Behavior changed
useLottie
Attach lottie.setDisplayRef to your own element; the hook no longer returns a View to render. lottiereact.com - Default changed
autoplay
Animations no longer play on mount unless autoplay is set explicitly. lottiereact.com - Default changed
loop
Animations play once unless loop is set explicitly. lottiereact.com - Configuration changed
React and react-dom 16.8 and 17 are no longer supported; upgrade them to 18.2 or newer. lottiereact.com - Signature changed
setDirection
Replace numeric direction arguments with the strings forward and reverse. lottiereact.com - Signature changed
useLottie
Was const useLottie: <T extends RendererType = "svg">(props: LottieOptions<T>, style?: CSSProperties) => {View: ReactElement;} & LottieRefCurrentProps; now function useLottie<Renderer extends LottieRenderer = typeof... npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.