Lottie-react-native: Incompatible block pointer

Created on 7 Apr 2017  路  4Comments  路  Source: lottie-react-native/lottie-react-native

After installing/linking/cleaning/building version 1.1.1, I get these build errors:

/app/node_modules/lottie-react-native/lib/ios/LottieReactNative/LRNAnimationViewManager.m:57:37: Incompatible block pointer types sending 'void (^)(RCTUIManager *__strong, NSDictionary<NSNumber *,UIView *> *__strong)' to parameter of type 'RCTViewManagerUIBlock' (aka 'void (^)(RCTUIManager *__strong, RCTSparseArray *__strong)')
/app/node_modules/lottie-react-native/lib/ios/LottieReactNative/LRNAnimationViewManager.m:70:37: Incompatible block pointer types sending 'void (^)(RCTUIManager *__strong, NSDictionary<NSNumber *,UIView *> *__strong)' to parameter of type 'RCTViewManagerUIBlock' (aka 'void (^)(RCTUIManager *__strong, RCTSparseArray *__strong)')

screen shot 2017-04-07 at 16 59 33

Most helpful comment

Had the same problem in React Native 0.50.3. Noticed that I had deprecated React dependency in cocoapods. Solved by adding next lines to Podfile:

pod 'React', path: '../node_modules/react-native'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

All 4 comments

I had the same issue but react-native upgrade solved the issue for me

@Jpunt @iDevo Is this still an issue?

Had the same problem in React Native 0.50.3. Noticed that I had deprecated React dependency in cocoapods. Solved by adding next lines to Podfile:

pod 'React', path: '../node_modules/react-native'
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

Closing this as hopefully he above works. Feel free to reopen if that's not the case.

Was this page helpful?
0 / 5 - 0 ratings