-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
I’m hitting an iOS build error with dotlottie-react-native version 0.7.1 during a React Native + CocoaPods build.
The issue is coming from the Swift implementation of DotlottieReactNativeViewManager.
Error
/ios/DotlottieReactNativeViewManager.swift:131:22
value of type 'DotLottieAnimation' has no member 'stateMachineUnSubscribe'
Relevant snippet:
// Unsubscribe state machine observer if it exists
if let stateMachineObserver = self.stateMachineObserver, let animation = self.animation {
_ = animation.stateMachineUnSubscribe(observer: stateMachineObserver)
}It looks like DotLottieAnimation no longer exposes stateMachineUnSubscribe.
Could be a method rename or removal in the underlying SDKs.
❌ (/Users/leonardocavalcante/Projects/bondi-lines/app/node_modules/.pnpm/@lottiefiles+dotlottie-react-native@0.7.1_react-native@0.81.5_@babel+core@7.28.5_@react_3c64b5f4dc54c922d8707f829eaafe2e/node_modules/@lottiefiles/dotlottie-react-native/ios/DotlottieReactNativeViewManager.swift:131:22)
129 | // Unsubscribe state machine observer if it exists
130 | if let stateMachineObserver = self.stateMachineObserver, let animation = self.animation {
> 131 | _ = animation.stateMachineUnSubscribe(observer: stateMachineObserver)
| ^ value of type 'DotLottieAnimation' has no member 'stateMachineUnSubscribe'
132 | }
133 |
134 | self.observer = nilReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels