diff --git a/ReactCommon/cxxreact/JSExecutor.h b/ReactCommon/cxxreact/JSExecutor.h index 35338cd0876..e699c79b226 100644 --- a/ReactCommon/cxxreact/JSExecutor.h +++ b/ReactCommon/cxxreact/JSExecutor.h @@ -8,6 +8,10 @@ #include #include +#ifndef RN_EXPORT +#define RN_EXPORT __attribute__((visibility("default"))) +#endif + namespace facebook { namespace react { @@ -42,7 +46,7 @@ public: virtual ~JSExecutorFactory() {} }; -class JSExecutor { +class RN_EXPORT JSExecutor { public: /** * Execute an application script bundle in the JS context.