mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Export some more symbols
Reviewed By: alexeylang Differential Revision: D5328772 fbshipit-source-id: 7122af7e9bcb14ecdb224fd63ea1be57e4c7f20e
This commit is contained in:
committed by
Facebook Github Bot
parent
58aca39105
commit
14538aa038
@@ -5,6 +5,10 @@
|
||||
#include <cxxreact/CxxModule.h>
|
||||
#include <cxxreact/NativeModule.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
@@ -14,7 +18,7 @@ class MessageQueueThread;
|
||||
std::function<void(folly::dynamic)> makeCallback(
|
||||
std::weak_ptr<Instance> instance, const folly::dynamic& callbackId);
|
||||
|
||||
class CxxNativeModule : public NativeModule {
|
||||
class RN_EXPORT CxxNativeModule : public NativeModule {
|
||||
public:
|
||||
CxxNativeModule(std::weak_ptr<Instance> instance,
|
||||
std::string name,
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
#include <cxxreact/NativeToJsBridge.h>
|
||||
#include <jschelpers/Value.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace folly {
|
||||
struct dynamic;
|
||||
}
|
||||
@@ -28,7 +32,7 @@ struct InstanceCallback {
|
||||
virtual void decrementPendingJSCalls() = 0;
|
||||
};
|
||||
|
||||
class Instance {
|
||||
class RN_EXPORT Instance {
|
||||
public:
|
||||
~Instance();
|
||||
void initializeBridge(
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
@@ -43,7 +47,7 @@ struct __attribute__((packed)) BundleHeader {
|
||||
* Takes the first 8 bytes of a bundle, and returns a tag describing the
|
||||
* bundle's format.
|
||||
*/
|
||||
ScriptTag parseTypeFromHeader(const BundleHeader& header);
|
||||
RN_EXPORT ScriptTag parseTypeFromHeader(const BundleHeader& header);
|
||||
|
||||
/**
|
||||
* stringForScriptTag
|
||||
|
||||
@@ -7,13 +7,17 @@
|
||||
|
||||
#include <cxxreact/JSModulesUnbundle.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class JSBigString;
|
||||
class JSBigBufferString;
|
||||
|
||||
class JSIndexedRAMBundle : public JSModulesUnbundle {
|
||||
class RN_EXPORT JSIndexedRAMBundle : public JSModulesUnbundle {
|
||||
public:
|
||||
// Throws std::runtime_error on failure.
|
||||
JSIndexedRAMBundle(const char *sourceURL);
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
#include <folly/Optional.h>
|
||||
#include <folly/dynamic.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
@@ -20,7 +24,7 @@ struct ModuleConfig {
|
||||
folly::dynamic config;
|
||||
};
|
||||
|
||||
class ModuleRegistry {
|
||||
class RN_EXPORT ModuleRegistry {
|
||||
public:
|
||||
// not implemented:
|
||||
// onBatchComplete: see https://our.intern.facebook.com/intern/tasks/?t=5279396
|
||||
|
||||
@@ -10,6 +10,10 @@
|
||||
#include <cxxreact/MessageQueueThread.h>
|
||||
#include <jschelpers/JavaScriptCore.h>
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
@@ -28,7 +32,7 @@ enum ReactMarkerId {
|
||||
};
|
||||
|
||||
using LogTaggedMarker = std::function<void(const ReactMarkerId, const char* tag)>;
|
||||
extern LogTaggedMarker logTaggedMarker;
|
||||
extern RN_EXPORT LogTaggedMarker logTaggedMarker;
|
||||
|
||||
extern void logMarker(const ReactMarkerId markerId);
|
||||
|
||||
@@ -43,11 +47,11 @@ using Hook = JSValueRef(*)(
|
||||
size_t argumentCount,
|
||||
const JSValueRef arguments[],
|
||||
JSValueRef *exception);
|
||||
extern Hook loggingHook;
|
||||
extern Hook nowHook;
|
||||
extern RN_EXPORT Hook loggingHook;
|
||||
extern RN_EXPORT Hook nowHook;
|
||||
|
||||
using ConfigurationHook = std::function<void(JSGlobalContextRef)>;
|
||||
extern ConfigurationHook installPerfHooks;
|
||||
extern RN_EXPORT ConfigurationHook installPerfHooks;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class JSException : public std::exception {
|
||||
class RN_EXPORT JSException : public std::exception {
|
||||
public:
|
||||
explicit JSException(const char* msg)
|
||||
: msg_(msg) {}
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
#include <jschelpers/Unicode.h>
|
||||
#include <jschelpers/noncopyable.h>
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
#ifndef RN_EXPORT
|
||||
#define RN_EXPORT __attribute__((visibility("default")))
|
||||
#endif
|
||||
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
class Value;
|
||||
|
||||
// C++ object wrapper for JSStringRef
|
||||
|
||||
Reference in New Issue
Block a user