1 #ifdef __cplusplus 2 #import <React/RCTViewComponentView.h> 3 #import <react/renderer/components/lottiereactnative/Props.h> 4 #import "LottieContainerView.h" 5 6 NS_ASSUME_NONNULL_BEGIN 7 8 @interface LottieAnimationViewComponentView : RCTViewComponentView <LottieContainerViewDelegate> 9 @end 10 11 namespace facebook { 12 namespace react { 13 // In order to compare these structs we need to add the == operator for each 14 // TODO: https://github.com/reactwg/react-native-new-architecture/discussions/91#discussioncomment-4426469 15 bool operator==(const LottieAnimationViewColorFiltersStruct& a, const LottieAnimationViewColorFiltersStruct& b) 16 { 17 return b.keypath == a.keypath && b.color == a.color; 18 } 19 20 bool operator==(const LottieAnimationViewTextFiltersIOSStruct& a, const LottieAnimationViewTextFiltersIOSStruct& b) 21 { 22 return b.keypath == a.keypath && b.text == a.text; 23 } 24 } 25 } 26 27 NS_ASSUME_NONNULL_END 28 29 #endif 30