mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-21 10:34:31 +08:00
Remove JsToNativeBridge's nativeQueue
Reviewed By: mhorowitz Differential Revision: D4589737 fbshipit-source-id: 3b2730417d99c4f98cfaad386bc50328f2551592
This commit is contained in:
committed by
Facebook Github Bot
parent
fbf6d1aaeb
commit
d7b37c4050
@@ -15,8 +15,14 @@ std::function<void(folly::dynamic)> makeCallback(
|
||||
|
||||
class CxxNativeModule : public NativeModule {
|
||||
public:
|
||||
CxxNativeModule(std::weak_ptr<Instance> instance, std::string name,
|
||||
xplat::module::CxxModule::Provider provider);
|
||||
CxxNativeModule(std::weak_ptr<Instance> instance,
|
||||
std::string name,
|
||||
xplat::module::CxxModule::Provider provider,
|
||||
std::shared_ptr<MessageQueueThread> messageQueueThread)
|
||||
: instance_(instance)
|
||||
, name_(std::move(name))
|
||||
, provider_(provider)
|
||||
, messageQueueThread_(messageQueueThread) {}
|
||||
|
||||
std::string getName() override;
|
||||
std::vector<MethodDescriptor> getMethods() override;
|
||||
@@ -32,6 +38,7 @@ private:
|
||||
std::weak_ptr<Instance> instance_;
|
||||
std::string name_;
|
||||
xplat::module::CxxModule::Provider provider_;
|
||||
std::shared_ptr<MessageQueueThread> messageQueueThread_;
|
||||
std::unique_ptr<xplat::module::CxxModule> module_;
|
||||
std::vector<xplat::module::CxxModule::Method> methods_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user