#pragma once #define RNS_IGNORE_SUPER_CALL_BEGIN \ _Pragma("clang diagnostic push") \ _Pragma("clang diagnostic ignored \"-Wobjc-missing-super-calls\"") #define RNS_IGNORE_SUPER_CALL_END _Pragma("clang diagnostic pop") #if defined __has_include #if __has_include() ||\ __has_include() // added in 78; underscore is used in dynamic frameworks #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 0 #else #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 1 #endif #else #define RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 \ 1 // Wild guess, close eyes and hope for the best. #endif #if RNS_REACT_NATIVE_VERSION_MINOR_BELOW_78 #define MUTATION_PARENT_TAG(mutation) mutation.parentShadowView.tag #else #define MUTATION_PARENT_TAG(mutation) mutation.parentTag #endif