Export more symbols on React Native

Reviewed By: skotchvail

Differential Revision: D5157649

fbshipit-source-id: 8d04dff3a8564d3a095591aa982c9b72ace9a8b7
This commit is contained in:
Hoa Dinh 2017-05-31 20:51:10 -07:00 committed by Facebook Github Bot
parent 1b16b33c78
commit ae49713342
2 changed files with 8 additions and 4 deletions

View File

@ -9,6 +9,10 @@
#include <jschelpers/JavaScriptCore.h>
#include <jschelpers/Value.h>
#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);

View File

@ -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));