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:
Manman Ren
2018-02-26 12:22:30 -08:00
committed by Facebook Github Bot
parent 3eee96ab86
commit ebbd4371c9
4 changed files with 22 additions and 11 deletions

View File

@@ -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.
*/