diff --git a/ReactCommon/jschelpers/JSCHelpers.h b/ReactCommon/jschelpers/JSCHelpers.h index 850b95a690..02a78d9107 100644 --- a/ReactCommon/jschelpers/JSCHelpers.h +++ b/ReactCommon/jschelpers/JSCHelpers.h @@ -9,6 +9,10 @@ #include #include +#ifndef RN_EXPORT +#define RN_EXPORT __attribute__((visibility("default"))) +#endif + namespace facebook { namespace react { @@ -47,7 +51,7 @@ JSObjectRef makeFunction( const char* name, JSFunction function); -void installGlobalFunction( +RN_EXPORT void installGlobalFunction( JSGlobalContextRef ctx, const char* name, JSFunction function); diff --git a/ReactCommon/jschelpers/Value.h b/ReactCommon/jschelpers/Value.h index 92dce0834f..0cc58418e5 100644 --- a/ReactCommon/jschelpers/Value.h +++ b/ReactCommon/jschelpers/Value.h @@ -307,15 +307,15 @@ public: return getType() == kJSTypeObject; } - Object asObject() const; + RN_EXPORT Object asObject() const; bool isString() const { return getType() == kJSTypeString; } - String toString() const; + RN_EXPORT String toString() const; - static Value makeError(JSContextRef ctx, const char *error); + RN_EXPORT static Value makeError(JSContextRef ctx, const char *error); static Value makeNumber(JSContextRef ctx, double value) { return Value(ctx, JSC_JSValueMakeNumber(ctx, value));