26 lines
862 B
C
26 lines
862 B
C
#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(<React-RCTAppDelegate/RCTReactNativeFactory.h>) ||\
|
|
__has_include(<React_RCTAppDelegate/RCTReactNativeFactory.h>) // 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
|