mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Mark ObjC methods that are called from React Native as dynamic.
Reviewed By: mmmulani Differential Revision: D7087100 fbshipit-source-id: 18e5726e5b48e7b71fcaab19f6fe73be0cad6233
This commit is contained in:
committed by
Facebook Github Bot
parent
3eee96ab86
commit
ebbd4371c9
@@ -104,6 +104,17 @@
|
||||
#define RCT_CONCAT2(A, B) A ## B
|
||||
#define RCT_CONCAT(A, B) RCT_CONCAT2(A, B)
|
||||
|
||||
/**
|
||||
* This attribute is used for static analysis.
|
||||
*/
|
||||
#if !defined RCT_DYNAMIC
|
||||
#if __has_attribute(objc_dynamic)
|
||||
#define RCT_DYNAMIC __attribute__((objc_dynamic))
|
||||
#else
|
||||
#define RCT_DYNAMIC
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Throw an assertion for unimplemented methods.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user